Commit b6082c50 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Used vlc_fourcc_GetCodec in aout_BitsPerSample.

It is a bit safer.
(cherry picked from commit 0e0eb5aa8d5c2bc32837eada52bf0b56c27afeb0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 01d5d60f
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment