[FFmpeg-cvslog] h264: Silence warning: comparison of distinct pointer types lacks a cast

Michael Niedermayer git at videolan.org
Sat Feb 23 14:50:11 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 23 14:09:04 2013 +0100| [c10c2aed47da0789527d528b1677ff4c4e13f5fa] | committer: Michael Niedermayer

h264: Silence warning: comparison of distinct pointer types lacks a cast

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

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

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

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5e9e64f..132739f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1551,7 +1551,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
         memcpy(h, h1, offsetof(H264Context, intra_pcm_ptr));
         memcpy(&h->cabac, &h1->cabac,
                sizeof(H264Context) - offsetof(H264Context, cabac));
-        av_assert0(&h->cabac == &h->mb_padding + 1);
+        av_assert0((void*)&h->cabac == &h->mb_padding + 1);
 
         memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
         memset(h->pps_buffers, 0, sizeof(h->pps_buffers));



More information about the ffmpeg-cvslog mailing list