Commit 8c814ce1 authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Jean-Baptiste Kempf

avcodec: fix codec mapping array size check

(cherry picked from commit 99ab06c7ffe189e81118f6122b1661c6c7af033c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b0c0b894
......@@ -425,7 +425,7 @@ vlc_fourcc_t GetVlcAudioFormat( int fmt )
[AV_SAMPLE_FMT_FLT] = VLC_CODEC_FL32,
[AV_SAMPLE_FMT_DBL] = 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