Commit a1ab2875 authored by bcoudurier's avatar bcoudurier

return error if buf_size is too small

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12981 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 68c58034
......@@ -2570,11 +2570,10 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
len = buf_size;
// Discard too short frames
if (buf_size < HEADER_SIZE) {
*data_size = 0;
return buf_size;
}
// Discard too short frames
if (buf_size < HEADER_SIZE)
return -1;
// If only one decoder interleave is not needed
outptr = s->frames == 1 ? out_samples : decoded_buf;
......
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