Commit 1f7871ec authored by Ronald S. Bultje's avatar Ronald S. Bultje

vp9: fix edge copy for 10/12bpp frames.

parent 9cdeb105
...@@ -3353,9 +3353,9 @@ static void decode_b(AVCodecContext *ctx, int row, int col, ...@@ -3353,9 +3353,9 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
av_assert2(n <= 4); av_assert2(n <= 4);
if (w & bw) { if (w & bw) {
s->dsp.mc[n][0][0][0][0](f->data[0] + yoff + o, f->linesize[0], s->dsp.mc[n][0][0][0][0](f->data[0] + yoff + o * bytesperpixel, f->linesize[0],
s->tmp_y + o, 128, h, 0, 0); s->tmp_y + o * bytesperpixel, 128, h, 0, 0);
o += bw * bytesperpixel; o += bw;
} }
} }
} }
...@@ -3368,11 +3368,11 @@ static void decode_b(AVCodecContext *ctx, int row, int col, ...@@ -3368,11 +3368,11 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
av_assert2(n <= 4); av_assert2(n <= 4);
if (w & bw) { if (w & bw) {
s->dsp.mc[n][0][0][0][0](f->data[1] + uvoff + o, f->linesize[1], s->dsp.mc[n][0][0][0][0](f->data[1] + uvoff + o * bytesperpixel, f->linesize[1],
s->tmp_uv[0] + o, 128, h, 0, 0); s->tmp_uv[0] + o * bytesperpixel, 128, h, 0, 0);
s->dsp.mc[n][0][0][0][0](f->data[2] + uvoff + o, f->linesize[2], s->dsp.mc[n][0][0][0][0](f->data[2] + uvoff + o * bytesperpixel, f->linesize[2],
s->tmp_uv[1] + o, 128, h, 0, 0); s->tmp_uv[1] + o * bytesperpixel, 128, h, 0, 0);
o += bw * bytesperpixel; o += bw;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment