1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_lagfun: fix heap-buffer overflow

Fixes #8310
This commit is contained in:
Paul B Mahol 2019-10-19 09:56:53 +02:00
parent d4d6b7b035
commit 723d69f99c

View File

@ -137,7 +137,7 @@ static int lagfun_frame16(AVFilterContext *ctx, void *arg, int jobnr, int nb_job
} }
for (int y = slice_start; y < slice_end; y++) { for (int y = slice_start; y < slice_end; y++) {
for (int x = 0; x < s->linesize[p]; x++) for (int x = 0; x < s->linesize[p] / 2; x++)
dst[x] = FFMAX(src[x], osrc[x] * decay); dst[x] = FFMAX(src[x], osrc[x] * decay);
src += in->linesize[p] / 2; src += in->linesize[p] / 2;