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

@@ -82,7 +82,7 @@ read_header:
init_get_bits(&s->gb, buf_ptr+dqt_offs, (buf_end - (buf_ptr+dqt_offs))*8);
s->start_code = DQT;
if (ff_mjpeg_decode_dqt(s) < 0 &&
avctx->error_recognition >= FF_ER_EXPLODE)
(avctx->err_recognition & AV_EF_EXPLODE))
return AVERROR_INVALIDDATA;
}
@@ -116,7 +116,7 @@ read_header:
s->mjpb_skiptosod = (sod_offs - sos_offs - show_bits(&s->gb, 16));
s->start_code = SOS;
if (ff_mjpeg_decode_sos(s, NULL, NULL) < 0 &&
avctx->error_recognition >= FF_ER_EXPLODE)
(avctx->err_recognition & AV_EF_EXPLODE))
return AVERROR_INVALIDDATA;
}