Commit 0e0eb5aa authored by Laurent Aimar's avatar Laurent Aimar

Used vlc_fourcc_GetCodec in aout_BitsPerSample.

It is a bit safer.
parent b86867f6
...@@ -200,7 +200,7 @@ unsigned int aout_FormatNbChannels( const audio_sample_format_t * p_format ) ...@@ -200,7 +200,7 @@ unsigned int aout_FormatNbChannels( const audio_sample_format_t * p_format )
*****************************************************************************/ *****************************************************************************/
unsigned int aout_BitsPerSample( vlc_fourcc_t i_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_U8:
case VLC_CODEC_S8: 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