[FFmpeg-cvslog] avfilter/vf_untile: swap the chroma shift values used for plane offsets

James Almer git at videolan.org
Thu Mar 16 22:10:56 EET 2023


ffmpeg | branch: release/4.3 | James Almer <jamrial at gmail.com> | Thu Mar 16 11:27:50 2023 -0300| [c3981b30a8badb20d81fc8b85c9fc71ca96a277c] | committer: James Almer

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

Fixes ticket #10265

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit dc61d5cf195bc6de9263883c42a58348863e6d4f)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3981b30a8badb20d81fc8b85c9fc71ca96a277c
---

 libavfilter/vf_untile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_untile.c b/libavfilter/vf_untile.c
index 9a2eb24901..df805141e0 100644
--- a/libavfilter/vf_untile.c
+++ b/libavfilter/vf_untile.c
@@ -139,8 +139,8 @@ static int activate(AVFilterContext *ctx)
         if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL || s->desc->flags & FF_PSEUDOPAL)) {
             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];
                 }
             }
         }



More information about the ffmpeg-cvslog mailing list