Message ID | 20230316144417.3634-1-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | dc61d5cf195bc6de9263883c42a58348863e6d4f |
Headers | show |
Series | [FFmpeg-devel,1/2] avfilter/vf_untile: swap the chroma shift values used for plane offsets | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
James Almer (12023-03-16): > Fixes ticket #10265 > > Signed-off-by: James Almer <jamrial@gmail.com> > --- > libavfilter/vf_untile.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) LGTM, thanks. The other patch seems fine, but, I have not examined the validity of the output visually. Regards,
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]; } } }
Fixes ticket #10265 Signed-off-by: James Almer <jamrial@gmail.com> --- libavfilter/vf_untile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)