projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e3b0b
)
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing...
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:05 +0000
(21:47 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:05 +0000
(21:47 +0000)
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/common.h
patch
|
blob
|
history
diff --git
a/libavutil/common.h
b/libavutil/common.h
index 3005b96d474cbd96696664e2e3af8d2fb13cfda2..bbcca7575f7be3cd46f1804b4d26552253cb1cf0 100644
(file)
--- a/
libavutil/common.h
+++ b/
libavutil/common.h
@@
-93,6
+93,14
@@
#endif
#endif
+#ifndef av_uninit
+#if defined(__GNUC__)
+# define av_uninit(x) x=x
+#else
+# define av_uninit(x) x
+#endif
+#endif
+
//rounded division & shift
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
/* assume b>0 */