aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-01-17 17:16:20 +0100
committerAnton Khirnov <anton@khirnov.net>2015-01-27 09:07:59 +0100
commitcf1e0786ed64e69614760bfb4ecd7adbde8e6094 (patch)
tree3f9950cdc5d877b7d21ed8de8508b75e294d7bf3 /libavcodec/mpegvideo.c
parenta7e0380497306d9723dec8440a4c52e8bf0263cf (diff)
downloadffmpeg-cf1e0786ed64e69614760bfb4ecd7adbde8e6094.tar.gz
error_resilience: move the MECmpContext initialization into ER code
Currently, it needs to be initialized by the ER caller (which is currently either a mpegvideo decoder or h264dec). However, since none of those decoders use MECmpContext for anything except ER, it makes more sense to handle it purely inside ER.
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 44cf8c53bd..876ec51fc1 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -381,7 +381,6 @@ static av_cold int dct_init(MpegEncContext *s)
{
ff_blockdsp_init(&s->bdsp, s->avctx);
ff_hpeldsp_init(&s->hdsp, s->avctx->flags);
- ff_me_cmp_init(&s->mecc, s->avctx);
ff_mpegvideodsp_init(&s->mdsp);
ff_videodsp_init(&s->vdsp, s->avctx->bits_per_raw_sample);
@@ -1068,7 +1067,6 @@ static int init_er(MpegEncContext *s)
int i;
er->avctx = s->avctx;
- er->mecc = &s->mecc;
er->mb_index2xy = s->mb_index2xy;
er->mb_num = s->mb_num;