Commit 0d054064 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_cover_rect: Handle the case where the cover rectangle is as large as the input

Fixes division by 0
Fixes CID1297575
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1431b4cf
......@@ -132,7 +132,7 @@ static void blur(CoverContext *cover, AVFrame *in, int offx, int offy)
s += data[x + h*stride] * scale;
c += scale;
}
data[x + y*stride] = (s + (c>>1)) / c;
data[x + y*stride] = c ? (s + (c>>1)) / c : 0;
}
}
}
......
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