mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 18:23:08 +00:00
lavfi/idet: fix chroma subsampling with odd sizes.
This commit is contained in:
parent
6c5bd7d785
commit
61b268eeda
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user