X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmpeg4videodec.c;h=4312689393d4acb38021e1c1dac00c56aab1f29f;hb=f57ab7ed376eea3ebb808583cdef7af4b0e1144e;hp=b57395ae8f28644c8e7238e569cc86f64eb372fe;hpb=feb997577b66367a0c4269100888640699ee890d;p=ffmpeg diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index b57395ae8f2..4312689393d 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -1493,7 +1493,7 @@ end: if(s->codec_id==CODEC_ID_MPEG4){ int next= mpeg4_is_resync(s); if(next) { - if (s->mb_x + s->mb_y*s->mb_width + 1 > next && s->avctx->error_recognition >= FF_ER_AGGRESSIVE) { + if (s->mb_x + s->mb_y*s->mb_width + 1 > next && (s->avctx->err_recognition & AV_EF_AGGRESSIVE)) { return -1; } else if (s->mb_x + s->mb_y*s->mb_width + 1 >= next) return SLICE_END;