summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-03-16 11:27:50 -0300
committerJames Almer <jamrial@gmail.com>2023-03-16 17:06:09 -0300
commit18dde8d4cf7b720cf2ba5eae9082f5a6868ff2b3 (patch)
treef7bd72967963f926160faa996d2138ec48080660
parentadb4688bfb0652b2ffa5bc29e53761e27e1a3b3e (diff)
downloadffmpeg-18dde8d4cf7b720cf2ba5eae9082f5a6868ff2b3.tar.gz
avfilter/vf_untile: swap the chroma shift values used for plane offsets
Fixes ticket #10265 Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit dc61d5cf195bc6de9263883c42a58348863e6d4f)
-rw-r--r--libavfilter/vf_untile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_untile.c b/libavfilter/vf_untile.c
index 5d7709d68c..c8dafd1e60 100644
--- a/libavfilter/vf_untile.c
+++ b/libavfilter/vf_untile.c
@@ -134,8 +134,8 @@ static int activate(AVFilterContext *ctx)
if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL)) {
for (i = 1; i < 3; i ++) {
if (out->data[i]) {
- out->data[i] += (y >> s->desc->log2_chroma_w) * out->linesize[i];
- out->data[i] += (x >> s->desc->log2_chroma_h) * s->max_step[i];
+ out->data[i] += (y >> s->desc->log2_chroma_h) * out->linesize[i];
+ out->data[i] += (x >> s->desc->log2_chroma_w) * s->max_step[i];
}
}
}