summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-27 23:32:49 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-13 15:27:48 +0100
commitcc90478967431d046b2d930a60be15e81c7d0e12 (patch)
treea4af17069bfc6b4a3ed819cfdb51c7cf28b366e3 /libavcodec/wmv2.c
parent584f26db0d8e4a2d34ec027b6bc70a9b2eb14926 (diff)
downloadffmpeg-cc90478967431d046b2d930a60be15e81c7d0e12.tar.gz
avcodec/wmv2: Split Wmv2Context into decoder and encoder context
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/wmv2.c')
-rw-r--r--libavcodec/wmv2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c
index 57e1267782..8d1d117dea 100644
--- a/libavcodec/wmv2.c
+++ b/libavcodec/wmv2.c
@@ -25,9 +25,9 @@
#include "wmv2.h"
-av_cold void ff_wmv2_common_init(Wmv2Context *w)
+av_cold void ff_wmv2_common_init(MpegEncContext *s)
{
- MpegEncContext *const s = &w->s;
+ WMV2Context *const w = s->private_ctx;
ff_blockdsp_init(&s->bdsp, s->avctx);
ff_wmv2dsp_init(&w->wdsp);
@@ -52,7 +52,7 @@ void ff_mspel_motion(MpegEncContext *s, uint8_t *dest_y,
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
int motion_x, int motion_y, int h)
{
- Wmv2Context *const w = (Wmv2Context *) s;
+ WMV2Context *const w = s->private_ctx;
uint8_t *ptr;
int dxy, mx, my, src_x, src_y, v_edge_pos;
ptrdiff_t offset, linesize, uvlinesize;