[FFmpeg-devel] [PATCH 3/3] lavu: add parens to macro argument.
Nicolas George
nicolas.george at normalesup.org
Sat Apr 13 12:04:45 CEST 2013
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavutil/avutil.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index fd9bdc8..6f307d6 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -271,7 +271,7 @@ unsigned av_int_list_length_for_size(unsigned elsize,
* @return length of the list, in elements, not counting the terminator
*/
#define av_int_list_length(list, term) \
- av_int_list_length_for_size(sizeof(*list), list, term)
+ av_int_list_length_for_size(sizeof(*(list)), list, term)
/**
* @}
--
1.7.10.4
More information about the ffmpeg-devel
mailing list