Commit 99ab06c7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: fix codec mapping array size check

parent d00fe8ac
......@@ -432,7 +432,7 @@ vlc_fourcc_t GetVlcAudioFormat( int fmt )
[AV_SAMPLE_FMT_FLTP] = VLC_CODEC_FL32,
[AV_SAMPLE_FMT_DBLP] = VLC_CODEC_FL64,
};
if( sizeof(fcc) / sizeof(fcc[0]) < (unsigned)fmt )
if( (sizeof(fcc) / sizeof(fcc[0])) > (unsigned)fmt )
return fcc[fmt];
return VLC_CODEC_S16N;
}
......
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