mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24. Originally committed as revision 17820 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bf1d7e285c
commit
5756bc7b02
@ -651,7 +651,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
|
||||
|
||||
/* check that there is at least the smallest decodable amount of data.
|
||||
this amount corresponds to the smallest valid FLAC frame possible. */
|
||||
if (buf_size < 24)
|
||||
if (buf_size < 16)
|
||||
goto end;
|
||||
|
||||
/* check for inline header */
|
||||
|
Loading…
Reference in New Issue
Block a user