diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-27 19:13:27 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-05-22 15:34:39 +0100 |
commit | 9c1db92ad372d4cd69e0490e691c56e4097cb193 (patch) | |
tree | fe9da8747f4aecab137273ba64adea9a2a849f38 /libavcodec/mpeg4videodec.c | |
parent | 848e86f74d3e6e87fa592ee8ba8c184cc5fd9a42 (diff) | |
download | ffmpeg-9c1db92ad372d4cd69e0490e691c56e4097cb193.tar.gz |
mpegvideo: Drop err_recognition
It is just a duplicate of an AVCodecContext member so use it instead.
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index ec03aac8f3..8dbdbf9b13 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -563,7 +563,7 @@ static inline int mpeg4_decode_dc(MpegEncContext *s, int n, int *dir_ptr) if (code > 8) { if (get_bits1(&s->gb) == 0) { /* marker */ - if (s->err_recognition & AV_EF_BITSTREAM) { + if (s->avctx->err_recognition & AV_EF_BITSTREAM) { av_log(s->avctx, AV_LOG_ERROR, "dc marker bit missing\n"); return -1; } @@ -1099,7 +1099,7 @@ static inline int mpeg4_decode_block(Mpeg4DecContext *ctx, int16_t *block, level = level * qmul - qadd; if ((unsigned)(level + 2048) > 4095) { - if (s->err_recognition & AV_EF_BITSTREAM) { + if (s->avctx->err_recognition & AV_EF_BITSTREAM) { if (level > 2560 || level < -2560) { av_log(s->avctx, AV_LOG_ERROR, "|level| overflow in 3. esc, qp=%d\n", |