diff options
author | Ronald S. Bultje <rbultje@gmail.com> | 2013-10-14 05:13:10 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-11-15 13:16:27 +0400 |
commit | 458446acfa1441d283dacf9e6e545beb083b8bb0 (patch) | |
tree | 49178dd81fe5208c996c942fb0c7e7a08f2e51db /libavcodec/svq3.c | |
parent | 3cbe1126530449336e2ce59b194bdb8c4eb4abb4 (diff) |
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.
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 775e07100c..cdff5af2fc 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -312,7 +312,8 @@ static inline void svq3_mc_dir_part(SVQ3Context *s, src = pic->f.data[0] + mx + my * h->linesize; if (emu) { - h->vdsp.emulated_edge_mc(h->edge_emu_buffer, src, h->linesize, + h->vdsp.emulated_edge_mc(h->edge_emu_buffer, src, + h->linesize, h->linesize, width + 1, height + 1, mx, my, s->h_edge_pos, s->v_edge_pos); src = h->edge_emu_buffer; @@ -338,7 +339,8 @@ static inline void svq3_mc_dir_part(SVQ3Context *s, src = pic->f.data[i] + mx + my * h->uvlinesize; if (emu) { - h->vdsp.emulated_edge_mc(h->edge_emu_buffer, src, h->uvlinesize, + h->vdsp.emulated_edge_mc(h->edge_emu_buffer, src, + h->uvlinesize, h->uvlinesize, width + 1, height + 1, mx, my, (s->h_edge_pos >> 1), s->v_edge_pos >> 1); |