Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-16 21:02:19 +0400
committerClément Bœsch <ubitux@gmail.com>2013-05-17 01:20:00 +0400
commit61b268eeda45d31ae771f6a13f0374210574e309 (patch)
treea0b07e9c990c74e4039107d6d44258593558b33e /libavfilter/vf_idet.c
parent6c5bd7d785ffb796b8cfbae677ab54755b26a22b (diff)
lavfi/idet: fix chroma subsampling with odd sizes.
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r--libavfilter/vf_idet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index cd8bbe3567..70aae92228 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++) {