Commit 61b268ee authored by Clément Bœsch's avatar Clément Bœsch

lavfi/idet: fix chroma subsampling with odd sizes.

parent 6c5bd7d7
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment