diff options
-rw-r--r-- | libavfilter/vf_cover_rect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index d12807ad53..c2020bb392 100644 --- a/libavfilter/vf_cover_rect.c +++ b/libavfilter/vf_cover_rect.c @@ -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; } } } |