summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2014-02-12 12:47:27 +0100
committerJanne Grunau <janne-libav@jannau.net>2014-02-12 15:48:03 +0100
commitf795a8a8bf5e312dad2c2829c543b9d309376ca1 (patch)
tree3cfcb1b1194765dcfcbfc8d386bd674c2aceb406
parentdff1c19140e70cd7bf868394b6f573221185928f (diff)
h264: make context_count unsigned
Removes the bogus but scary looking warning 'libavcodec/h264.c:4529:49: warning: array subscript is below array bounds [-Warray-bounds]'.
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index da2d4a55fa..9b5d6a0eba 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4500,7 +4500,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
* @param h h264 master context
* @param context_count number of contexts to execute
*/
-static int execute_decode_slices(H264Context *h, int context_count)
+static int execute_decode_slices(H264Context *h, unsigned context_count)
{
AVCodecContext *const avctx = h->avctx;
H264Context *hx;
@@ -4544,7 +4544,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
AVCodecContext *const avctx = h->avctx;
H264Context *hx; ///< thread context
int buf_index;
- int context_count;
+ unsigned context_count;
int next_avc;
int pass = !(avctx->active_thread_type & FF_THREAD_FRAME);
int nals_needed = 0; ///< number of NALs that need decoding before the next frame thread starts