This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
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: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer
10 years ago
parent
1431b4cf77
commit
0d05406482
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavfilter/vf_cover_rect.c
+ 1
- 1
libavfilter/vf_cover_rect.c
View File
@@ -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
;
}
}
}
Write
Preview
Loading…
Cancel
Save