lavfi/idet: fix chroma subsampling with odd sizes.

pull/18/head
Clément Bœsch 12 years ago
parent 6c5bd7d785
commit 61b268eeda
  1. 4
      libavfilter/vf_idet.c

@ -118,8 +118,8 @@ static void filter(AVFilterContext *ctx)
int refs = idet->cur->linesize[i]; int refs = idet->cur->linesize[i];
if (i && i<3) { if (i && i<3) {
w >>= idet->csp->log2_chroma_w; w = FF_CEIL_RSHIFT(w, idet->csp->log2_chroma_w);
h >>= idet->csp->log2_chroma_h; h = FF_CEIL_RSHIFT(h, idet->csp->log2_chroma_h);
} }
for (y = 2; y < h - 2; y++) { for (y = 2; y < h - 2; y++) {

Loading…
Cancel
Save