From 458446acfa1441d283dacf9e6e545beb083b8bb0 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 14 Oct 2013 03:13:10 +0200 Subject: lavc: Edge emulation with dst/src linesize Allow supporting files for which the image stride is smaller than the maximum block size + number of subpel mc taps, e.g. a 64x64 VP9 file or a 16x16 VP8 file with -fflags +emu_edge. --- libavcodec/vp3.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/vp3.c') diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index d596816066..adcecbcf04 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -1543,7 +1543,11 @@ static void render_slice(Vp3DecodeContext *s, int slice) uint8_t *temp= s->edge_emu_buffer; if(stride<0) temp -= 8*stride; - s->vdsp.emulated_edge_mc(temp, motion_source, stride, 9, 9, src_x, src_y, plane_width, plane_height); + s->vdsp.emulated_edge_mc(temp, motion_source, + stride, stride, + 9, 9, src_x, src_y, + plane_width, + plane_height); motion_source= temp; } } -- cgit v1.2.3