mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avcodec/mjpegdec: Dont treat the lack of a startcode differently from end of the bitstream
Fixes Ticket3303 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
361e27a3d8
commit
31e703e899
@ -1797,7 +1797,7 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
&unescaped_buf_size);
|
&unescaped_buf_size);
|
||||||
/* EOF */
|
/* EOF */
|
||||||
if (start_code < 0) {
|
if (start_code < 0) {
|
||||||
goto the_end;
|
break;
|
||||||
} else if (unescaped_buf_size > INT_MAX / 8) {
|
} else if (unescaped_buf_size > INT_MAX / 8) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"MJPEG packet 0x%x too big (%d/%d), corrupt data?\n",
|
"MJPEG packet 0x%x too big (%d/%d), corrupt data?\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user