This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer
16 years ago
parent
16e3b0b3e6
commit
51066987cf
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
libavutil/common.h
+ 8
- 0
libavutil/common.h
View File
@@ -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 */
Write
Preview
Loading…
Cancel
Save