lavc: replace references to deprecated AVCodecContext.error_recognition to use AVCodecContext.err_recognition

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Dustin Brody
2011-10-22 08:44:16 -04:00
committed by Anton Khirnov
parent 5ea0001f9e
commit 9abc98737f
12 changed files with 33 additions and 33 deletions

View File

@@ -1531,7 +1531,7 @@ eoi_parser:
break;
}
if (ff_mjpeg_decode_sos(s, NULL, NULL) < 0 &&
avctx->error_recognition >= FF_ER_EXPLODE)
(avctx->err_recognition & AV_EF_EXPLODE))
return AVERROR_INVALIDDATA;
/* buggy avid puts EOI every 10-20th frame */
/* if restart period is over process EOI */