Skip to content
Snippets Groups Projects
Commit 06af6e10 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/vf_mestimate: Check b_count


Fixes: left shift of negative value -1
Fixes: Ticket8270

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 012804d2
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,9 @@ static int config_input(AVFilterLink *inlink)
s->b_height = inlink->h >> s->log2_mb_size;
s->b_count = s->b_width * s->b_height;
if (s->b_count == 0)
return AVERROR(EINVAL);
for (i = 0; i < 3; i++) {
s->mv_table[i] = av_mallocz_array(s->b_count, sizeof(*s->mv_table[0]));
if (!s->mv_table[i])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment