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

git at videolan.org git at videolan.org
Sun May 2 00:37:17 CEST 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat May  1 23:44:41 2010 +0200| [b6082c50850463c7f7dd804ee541b9e54eb3dceb] | committer: Jean-Baptiste Kempf 

Used vlc_fourcc_GetCodec in aout_BitsPerSample.

It is a bit safer.
(cherry picked from commit 0e0eb5aa8d5c2bc32837eada52bf0b56c27afeb0)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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