Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-01-22 01:01:50 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-01-28 00:16:37 +0300
commit6294247730549064b1c948c423cf12aa6ff8cf03 (patch)
tree693aedb145f9ab76b6f7cc1379e196bec0598219 /libavfilter
parent03e42a4fecae42eec4687fd6f1e1c504303f9b83 (diff)
avfilter/vf_gblur: Increase supported pixel count from 31bit to 32bit in filter_postscale()
Fixes CID1396252 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_gblur.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c
index 27b702998e..f843e3f376 100644
--- a/libavfilter/vf_gblur.c
+++ b/libavfilter/vf_gblur.c
@@ -152,12 +152,12 @@ static int filter_postscale(AVFilterContext *ctx, void *arg, int jobnr, int nb_j
ThreadData *td = arg;
const int height = td->height;
const int width = td->width;
- const int64_t numpixels = width * height;
- const int slice_start = (numpixels * jobnr ) / nb_jobs;
- const int slice_end = (numpixels * (jobnr+1)) / nb_jobs;
+ const int64_t numpixels = width * (int64_t)height;
+ const unsigned slice_start = (numpixels * jobnr ) / nb_jobs;
+ const unsigned slice_end = (numpixels * (jobnr+1)) / nb_jobs;
const float postscale = s->postscale * s->postscaleV;
float *buffer = s->buffer;
- int i;
+ unsigned i;
for (i = slice_start; i < slice_end; i++)
buffer[i] *= postscale;