Commit dc61d5cf authored by James Almer's avatar James Almer

avfilter/vf_untile: swap the chroma shift values used for plane offsets

Fixes ticket #10265
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent c3a79990
...@@ -134,8 +134,8 @@ static int activate(AVFilterContext *ctx) ...@@ -134,8 +134,8 @@ static int activate(AVFilterContext *ctx)
if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL)) { if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL)) {
for (i = 1; i < 3; i ++) { for (i = 1; i < 3; i ++) {
if (out->data[i]) { if (out->data[i]) {
out->data[i] += (y >> s->desc->log2_chroma_w) * out->linesize[i]; out->data[i] += (y >> s->desc->log2_chroma_h) * out->linesize[i];
out->data[i] += (x >> s->desc->log2_chroma_h) * s->max_step[i]; out->data[i] += (x >> s->desc->log2_chroma_w) * s->max_step[i];
} }
} }
} }
......
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