mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-02 03:06:28 +02:00
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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4be0b91094
commit
cdc48860a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user