Commit cdc48860 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: silence warning about array index being out of bounds

The index is not out of bounds, adding an assert makes gcc
realize this.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4be0b910
......@@ -3906,6 +3906,7 @@ static int execute_decode_slices(H264Context *h, int context_count)
if (context_count == 1) {
return decode_slice(avctx, &h);
} else {
av_assert0(context_count > 0);
for (i = 1; i < context_count; i++) {
hx = h->thread_context[i];
hx->s.err_recognition = avctx->err_recognition;
......
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