From face578d56c2d1375e40d5e2a28acc122132bc55 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 20 Sep 2013 08:01:19 -0400 Subject: Rewrite emu_edge functions to have separate src/dst_stride arguments. This allows supporting files for which the image stride is smaller than the max. block size + number of subpel mc taps, e.g. a 64x64 VP9 file or a 16x16 VP8 file with -fflags +emu_edge. --- libavcodec/snow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/snow.c') diff --git a/libavcodec/snow.c b/libavcodec/snow.c index dc5c78e84a..b54c491f42 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -349,7 +349,9 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, ptrdiff_t st src += sx + sy*stride; if( (unsigned)sx >= FFMAX(w - b_w - (HTAPS_MAX-2), 0) || (unsigned)sy >= FFMAX(h - b_h - (HTAPS_MAX-2), 0)){ - s->vdsp.emulated_edge_mc(tmp + MB_SIZE, src, stride, b_w+HTAPS_MAX-1, b_h+HTAPS_MAX-1, sx, sy, w, h); + s->vdsp.emulated_edge_mc(tmp + MB_SIZE, stride, src, stride, + b_w+HTAPS_MAX-1, b_h+HTAPS_MAX-1, + sx, sy, w, h); src= tmp + MB_SIZE; } -- cgit v1.2.3