[vlc-commits] aout: remove 24-bits support left-overs
Rémi Denis-Courmont
git at videolan.org
Thu Dec 20 20:29:55 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 20 21:02:58 2012 +0200| [8d73a4d79b1fe7423d07d106281a96393f60115c] | committer: Rémi Denis-Courmont
aout: remove 24-bits support left-overs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d73a4d79b1fe7423d07d106281a96393f60115c
---
src/audio_output/common.c | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index f5a0fc1..7552a2d 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -338,22 +338,6 @@ void aout_ChannelReorder( void *ptr, size_t bytes, unsigned channels,
}
break;
}
-
- case 24:
- {
- uint8_t *buf = ptr;
-
- for( size_t i = 0; i < samples; i++ )
- {
- uint8_t tmp[3 * AOUT_CHAN_MAX];
-
- for( size_t j = 0; j < channels; j++ )
- memcpy( tmp + (3 * chans_table[j]), buf + (3 * j), 3 );
-
- memcpy( buf, tmp, 3 * channels );
- buf += 3 * channels;
- }
- }
}
}
@@ -386,8 +370,6 @@ void aout_ChannelExtract( void *p_dst, int i_dst_channels,
ExtractChannel( p_dst, i_dst_channels, p_src, i_src_channels, i_sample_count, pi_selection, 1 );
else if( i_bits_per_sample == 16 )
ExtractChannel( p_dst, i_dst_channels, p_src, i_src_channels, i_sample_count, pi_selection, 2 );
- else if( i_bits_per_sample == 24 )
- ExtractChannel( p_dst, i_dst_channels, p_src, i_src_channels, i_sample_count, pi_selection, 3 );
else if( i_bits_per_sample == 32 )
ExtractChannel( p_dst, i_dst_channels, p_src, i_src_channels, i_sample_count, pi_selection, 4 );
else if( i_bits_per_sample == 64 )
More information about the vlc-commits
mailing list