[FFmpeg-devel] [PATCH]Silence icc warning when using av_uninit()
Carl Eugen Hoyos
cehoyos
Mon Feb 9 23:33:30 CET 2009
Hi!
Attached patch fixes the following icc warning:
libavcodec/msmpeg4.c(1612): warning #592: variable "dc_pred_dir" is used
before its value is set
int av_uninit(dc_pred_dir);
^
Please comment, Carl Eugen
-------------- next part --------------
Index: libavutil/common.h
===================================================================
--- libavutil/common.h (revision 17107)
+++ libavutil/common.h (working copy)
@@ -102,7 +102,7 @@
#endif
#ifndef av_uninit
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__ICC)
# define av_uninit(x) x=x
#else
# define av_uninit(x) x
More information about the ffmpeg-devel
mailing list