aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-04 15:50:15 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-09-05 15:50:01 -0400
commit1f7871ec428fa0c8247a4d1b7242ddafa2c07205 (patch)
tree3798689744b5b9741405fafd5316cb4d68d2d9d3 /libavcodec
parent9cdeb105a6d5a516fc42d97cf49e593cf9f6e6c4 (diff)
downloadffmpeg-1f7871ec428fa0c8247a4d1b7242ddafa2c07205.tar.gz
vp9: fix edge copy for 10/12bpp frames.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp9.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 25a7b1d0b4..76247436e8 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -3353,9 +3353,9 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
av_assert2(n <= 4);
if (w & bw) {
- s->dsp.mc[n][0][0][0][0](f->data[0] + yoff + o, f->linesize[0],
- s->tmp_y + o, 128, h, 0, 0);
- o += bw * bytesperpixel;
+ s->dsp.mc[n][0][0][0][0](f->data[0] + yoff + o * bytesperpixel, f->linesize[0],
+ s->tmp_y + o * bytesperpixel, 128, h, 0, 0);
+ o += bw;
}
}
}
@@ -3368,11 +3368,11 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
av_assert2(n <= 4);
if (w & bw) {
- s->dsp.mc[n][0][0][0][0](f->data[1] + uvoff + o, f->linesize[1],
- s->tmp_uv[0] + o, 128, h, 0, 0);
- s->dsp.mc[n][0][0][0][0](f->data[2] + uvoff + o, f->linesize[2],
- s->tmp_uv[1] + o, 128, h, 0, 0);
- o += bw * bytesperpixel;
+ s->dsp.mc[n][0][0][0][0](f->data[1] + uvoff + o * bytesperpixel, f->linesize[1],
+ s->tmp_uv[0] + o * bytesperpixel, 128, h, 0, 0);
+ s->dsp.mc[n][0][0][0][0](f->data[2] + uvoff + o * bytesperpixel, f->linesize[2],
+ s->tmp_uv[1] + o * bytesperpixel, 128, h, 0, 0);
+ o += bw;
}
}
}