lavfi/idet: fix chroma subsampling with odd sizes.

This commit is contained in:
Clément Bœsch 2013-05-16 19:02:19 +02:00
parent 6c5bd7d785
commit 61b268eeda
1 changed files with 2 additions and 2 deletions

View File

@ -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++) {