mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavfi/yadif: fix chroma subsampling with odd sizes.
This commit is contained in:
parent
61b268eeda
commit
f3962c6264
@ -187,8 +187,8 @@ static void filter(AVFilterContext *ctx, AVFrame *dstpic,
|
|||||||
|
|
||||||
if (i == 1 || i == 2) {
|
if (i == 1 || i == 2) {
|
||||||
/* Why is this not part of the per-plane description thing? */
|
/* Why is this not part of the per-plane description thing? */
|
||||||
w >>= yadif->csp->log2_chroma_w;
|
w = FF_CEIL_RSHIFT(w, yadif->csp->log2_chroma_w);
|
||||||
h >>= yadif->csp->log2_chroma_h;
|
h = FF_CEIL_RSHIFT(h, yadif->csp->log2_chroma_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* filtering reads 3 pixels to the left/right; to avoid invalid reads,
|
/* filtering reads 3 pixels to the left/right; to avoid invalid reads,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user