Commit bbd7b46b authored by Michael Niedermayer's avatar Michael Niedermayer

sab_diamond_search: add assert to double check the minima_count

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 617d0d41
......@@ -688,6 +688,8 @@ static int sab_diamond_search(MpegEncContext * s, int *best, int dmin,
LOAD_COMMON2
unsigned map_generation = c->map_generation;
av_assert1(minima_count <= MAX_SAB_SIZE);
cmpf= s->dsp.me_cmp[size];
chroma_cmpf= s->dsp.me_cmp[size+1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment