aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-02 16:20:19 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-02 16:20:19 +0100
commitcdc48860a8cbb0080acc0732b2e1c689cea03777 (patch)
tree03cbfde4e807384823e1e0d68eadd9ea8820f65e /libavcodec
parent4be0b9109421b87f049cab9aa8f46d94f5403c08 (diff)
downloadffmpeg-cdc48860a8cbb0080acc0732b2e1c689cea03777.tar.gz
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3d759cc4f6..50839bd83c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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;