diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-09 05:54:18 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-10-12 10:58:15 +0200 |
commit | 28ac2279adb860ea8b90d3073603912bf3eb6a83 (patch) | |
tree | 8ae63024393413bc293408d02f49f6bb2aab6e4d /libavcodec/snowenc.c | |
parent | 2a7ee6dda0184e6ba8b07a2b577f365fd068bd3e (diff) |
avcodec/snow: Move initializing MotionEstContext to snowenc.c
Only used by the encoder.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index c5ff50639e..ea0d4fc27f 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -26,6 +26,7 @@ #include "avcodec.h" #include "codec_internal.h" #include "encode.h" +#include "me_cmp.h" #include "packet_internal.h" #include "snow_dwt.h" #include "snow.h" @@ -66,6 +67,7 @@ static av_cold int encode_init(AVCodecContext *avctx) if ((ret = ff_snow_common_init(avctx)) < 0) { return ret; } + ff_me_cmp_init(&s->mecc, avctx); ff_mpegvideoencdsp_init(&s->mpvencdsp, avctx); ff_snow_alloc_blocks(s); |