diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-06-15 20:55:27 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-06-15 21:47:45 +0000 |
commit | 8a79a009f9cae3b6e6566e7714d2788e39efabdd (patch) | |
tree | 8f3f85b01346738af86a5b118429cbcdc01a5474 | |
parent | 194fde38349e0cf9020849d48d886ed804e4d714 (diff) | |
download | ffmpeg-8a79a009f9cae3b6e6566e7714d2788e39efabdd.tar.gz |
lavu/utils: silence warnings about incompatible pointer types
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavutil/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/utils.c b/libavutil/utils.c index 2159d1c6f5..eb87c906c8 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; |