mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_tiltandshift: fix buffer offset for yuv422p input
Fixes ticket #10950. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c75cabef94
commit
2df8aaa8c5
@ -177,14 +177,14 @@ static void copy_column(AVFilterLink *outlink,
|
||||
const uint8_t *src[4];
|
||||
|
||||
dst[0] = dst_data[0] + ncol;
|
||||
dst[1] = dst_data[1] + (ncol >> s->desc->log2_chroma_h);
|
||||
dst[2] = dst_data[2] + (ncol >> s->desc->log2_chroma_h);
|
||||
dst[1] = dst_data[1] + (ncol >> s->desc->log2_chroma_w);
|
||||
dst[2] = dst_data[2] + (ncol >> s->desc->log2_chroma_w);
|
||||
|
||||
if (!tilt)
|
||||
ncol = 0;
|
||||
src[0] = src_data[0] + ncol;
|
||||
src[1] = src_data[1] + (ncol >> s->desc->log2_chroma_h);
|
||||
src[2] = src_data[2] + (ncol >> s->desc->log2_chroma_h);
|
||||
src[1] = src_data[1] + (ncol >> s->desc->log2_chroma_w);
|
||||
src[2] = src_data[2] + (ncol >> s->desc->log2_chroma_w);
|
||||
|
||||
av_image_copy(dst, dst_linesizes, src, src_linesizes, outlink->format, 1, outlink->h);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user