diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-05-16 19:02:32 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-05-16 23:20:02 +0200 |
commit | f3962c62641d3d73efedf1c15152dfa3d8f8e3b0 (patch) | |
tree | 96ca4180d4600f69e7e36f771baced4b1d3a988a /libavfilter/vf_yadif.c | |
parent | 61b268eeda45d31ae771f6a13f0374210574e309 (diff) | |
download | ffmpeg-f3962c62641d3d73efedf1c15152dfa3d8f8e3b0.tar.gz |
lavfi/yadif: fix chroma subsampling with odd sizes.
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r-- | libavfilter/vf_yadif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 5d8934b3c6..cc7c3e2114 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -187,8 +187,8 @@ static void filter(AVFilterContext *ctx, AVFrame *dstpic, if (i == 1 || i == 2) { /* Why is this not part of the per-plane description thing? */ - w >>= yadif->csp->log2_chroma_w; - h >>= yadif->csp->log2_chroma_h; + w = FF_CEIL_RSHIFT(w, yadif->csp->log2_chroma_w); + h = FF_CEIL_RSHIFT(h, yadif->csp->log2_chroma_h); } /* filtering reads 3 pixels to the left/right; to avoid invalid reads, |