[FFmpeg-cvslog] lavu/utils: silence warnings about incompatible pointer types

Paul B Mahol git at videolan.org
Sat Jun 15 23:48:11 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jun 15 20:55:27 2013 +0000| [8a79a009f9cae3b6e6566e7714d2788e39efabdd] | committer: Paul B Mahol

lavu/utils: silence warnings about incompatible pointer types

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavutil/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/utils.c b/libavutil/utils.c
index 2159d1c..eb87c90 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -99,7 +99,7 @@ unsigned av_int_list_length_for_size(unsigned elsize,
     if (!list)
         return 0;
 #define LIST_LENGTH(type) \
-    { type t = term, *l = list; for (i = 0; l[i] != t; i++); }
+    { type t = term, *l = (type *)list; for (i = 0; l[i] != t; i++); }
     switch (elsize) {
     case 1: LIST_LENGTH(uint8_t);  break;
     case 2: LIST_LENGTH(uint16_t); break;



More information about the ffmpeg-cvslog mailing list