[FFmpeg-cvslog] lavfi/idet: 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:19 2013 +0200| [61b268eeda45d31ae771f6a13f0374210574e309] | committer: Clément Bœsch
lavfi/idet: fix chroma subsampling with odd sizes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61b268eeda45d31ae771f6a13f0374210574e309
---
libavfilter/vf_idet.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index cd8bbe3..70aae92 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -118,8 +118,8 @@ static void filter(AVFilterContext *ctx)
int refs = idet->cur->linesize[i];
if (i && i<3) {
- w >>= idet->csp->log2_chroma_w;
- h >>= idet->csp->log2_chroma_h;
+ w = FF_CEIL_RSHIFT(w, idet->csp->log2_chroma_w);
+ h = FF_CEIL_RSHIFT(h, idet->csp->log2_chroma_h);
}
for (y = 2; y < h - 2; y++) {
More information about the ffmpeg-cvslog
mailing list