diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-23 22:29:03 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-04 16:28:55 +0100 |
commit | 5de7bce12e9469911a743cb3dcfb86776ccbf57c (patch) | |
tree | baa267dee3b4fe97b7c414bf6ccfa3b67aded093 | |
parent | 4a9b460a096f7225856550c2eb3a41402b7b812d (diff) | |
download | ffmpeg-5de7bce12e9469911a743cb3dcfb86776ccbf57c.tar.gz |
avcodec/mpegvideo: Don't initialize error resilience context for encoder
It is only used for decoders.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index f2618f5b7b..129e0ef647 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -835,7 +835,7 @@ static int init_context_frame(MpegEncContext *s) return AVERROR(ENOMEM); memset(s->mbintra_table, 1, mb_array_size); - return ff_mpeg_er_init(s); + return s->encoding ? 0 : ff_mpeg_er_init(s); } static void clear_context(MpegEncContext *s) |