[FFmpeg-cvslog] lavfi/yadif: fix chroma subsampling with odd sizes.
Clément Bœsch
git at videolan.org
Thu May 16 23:24:53 CEST 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu May 16 19:02:32 2013 +0200| [f3962c62641d3d73efedf1c15152dfa3d8f8e3b0] | committer: Clément Bœsch
lavfi/yadif: fix chroma subsampling with odd sizes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3962c62641d3d73efedf1c15152dfa3d8f8e3b0
---
libavfilter/vf_yadif.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 5d8934b..cc7c3e2 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,
More information about the ffmpeg-cvslog
mailing list