summaryrefslogtreecommitdiff
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-27 23:56:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-27 23:56:06 +0200
commit29b09233249e9c7e1d37358a82c97ff4d96befa6 (patch)
treef3ed4d66b0c854d698b84fbdbc364df9e36d6922 /libavcodec/h264_slice.c
parent9ea256814dc290866b85f56a1ba213e80c4a5f7a (diff)
avcodec/h264_slice: Silence pointer type warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index d6ad9f68f6..69401a2107 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -383,7 +383,7 @@ void ff_h264_init_dequant_tables(H264Context *h)
}
}
-#define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size))))
+#define IN_RANGE(a, b, size) (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size))))
#define REBASE_PICTURE(pic, new_ctx, old_ctx) \
(((pic) && (pic) >= (old_ctx)->DPB && \