[FFmpeg-cvslog] avcodec/h264_slice: Silence pointer type warnings

Michael Niedermayer git at videolan.org
Sun Jun 28 00:14:21 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 27 23:56:06 2015 +0200| [29b09233249e9c7e1d37358a82c97ff4d96befa6] | committer: Michael Niedermayer

avcodec/h264_slice: Silence pointer type warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29b09233249e9c7e1d37358a82c97ff4d96befa6
---

 libavcodec/h264_slice.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index d6ad9f6..69401a2 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 &&                       \



More information about the ffmpeg-cvslog mailing list