mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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)
This commit is contained in:
parent
7694a44baa
commit
c3981b30a8
@ -139,8 +139,8 @@ static int activate(AVFilterContext *ctx)
|
|||||||
if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL || s->desc->flags & FF_PSEUDOPAL)) {
|
if (!(s->desc->flags & AV_PIX_FMT_FLAG_PAL || s->desc->flags & FF_PSEUDOPAL)) {
|
||||||
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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user