mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
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>
This commit is contained in:
parent
4a9b460a09
commit
5de7bce12e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user