mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01:00
mjpegdec: Remove buggy avid hacks, they dont do anything good with any file i found
Fix multi plane jpeg Fixes ticket471 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1490,8 +1490,6 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx,
|
|||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case EOI:
|
case EOI:
|
||||||
if ((s->buggy_avid && !s->interlaced) || s->restart_interval)
|
|
||||||
break;
|
|
||||||
eoi_parser:
|
eoi_parser:
|
||||||
s->cur_scan = 0;
|
s->cur_scan = 0;
|
||||||
if (!s->got_picture) {
|
if (!s->got_picture) {
|
||||||
@@ -1526,10 +1524,6 @@ eoi_parser:
|
|||||||
if (ff_mjpeg_decode_sos(s, NULL, NULL) < 0 &&
|
if (ff_mjpeg_decode_sos(s, NULL, NULL) < 0 &&
|
||||||
avctx->error_recognition >= FF_ER_EXPLODE)
|
avctx->error_recognition >= FF_ER_EXPLODE)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
/* buggy avid puts EOI every 10-20th frame */
|
|
||||||
/* if restart period is over process EOI */
|
|
||||||
if ((s->buggy_avid && !s->interlaced) || s->restart_interval)
|
|
||||||
goto eoi_parser;
|
|
||||||
break;
|
break;
|
||||||
case DRI:
|
case DRI:
|
||||||
mjpeg_decode_dri(s);
|
mjpeg_decode_dri(s);
|
||||||
|
|||||||
Reference in New Issue
Block a user