[FFmpeg-cvslog] lavu: add parens to macro argument.

Nicolas George git at videolan.org
Sat Apr 13 20:47:46 CEST 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat Apr 13 11:47:27 2013 +0200| [2a1d7ea5f8ba71e1ed96c17414f8d106c006d87a] | committer: Nicolas George

lavu: add parens to macro argument.

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

 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)
 
 /**
  * @}



More information about the ffmpeg-cvslog mailing list