[vlc-commits] commit: Used vlc_fourcc_GetCodec in aout_BitsPerSample. (Laurent Aimar )

git at videolan.org git at videolan.org
Sun May 2 00:27:10 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat May  1 23:44:41 2010 +0200| [0e0eb5aa8d5c2bc32837eada52bf0b56c27afeb0] | committer: Laurent Aimar 

Used vlc_fourcc_GetCodec in aout_BitsPerSample.

It is a bit safer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e0eb5aa8d5c2bc32837eada52bf0b56c27afeb0
---

 src/audio_output/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index 34650f2..5d5da1e 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -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:



More information about the vlc-commits mailing list