]> git.sesse.net Git - vlc/commitdiff
Used vlc_fourcc_GetCodec in aout_BitsPerSample.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 1 May 2010 21:44:41 +0000 (23:44 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 1 May 2010 22:23:29 +0000 (00:23 +0200)
It is a bit safer.

src/audio_output/common.c

index 34650f2b5e666172464b1748dff89139d02acec6..5d5da1e76db9fa4f297fdcc69d8798eaee91c2a8 100644 (file)
@@ -200,7 +200,7 @@ unsigned int aout_FormatNbChannels( const audio_sample_format_t * p_format )
  *****************************************************************************/
 unsigned int aout_BitsPerSample( vlc_fourcc_t i_format )
 {
-    switch( i_format )
+    switch( vlc_fourcc_GetCodec( AUDIO_ES, i_format ) )
     {
     case VLC_CODEC_U8:
     case VLC_CODEC_S8: