Mercurial > mplayer.hg
comparison gui/mplayer/gui_common.c @ 32956:cde5d1cbb4bc
Move global variables to top of file.
Additionally: remove needless explicit initialization.
author | ib |
---|---|
date | Mon, 07 Mar 2011 20:36:06 +0000 |
parents | e12d6cd72b75 |
children | b17dd13b3cce |
comparison
equal
deleted
inserted
replaced
32955:e12d6cd72b75 | 32956:cde5d1cbb4bc |
---|---|
35 #include "osdep/timer.h" | 35 #include "osdep/timer.h" |
36 #include "libmpdemux/stheader.h" | 36 #include "libmpdemux/stheader.h" |
37 #include "codec-cfg.h" | 37 #include "codec-cfg.h" |
38 #include "access_mpcontext.h" | 38 #include "access_mpcontext.h" |
39 #include "libavutil/avstring.h" | 39 #include "libavutil/avstring.h" |
40 | |
41 static char * image_buffer; | |
42 static int image_width; | |
40 | 43 |
41 static inline void TranslateFilename( int c,char * tmp,size_t tmplen ) | 44 static inline void TranslateFilename( int c,char * tmp,size_t tmplen ) |
42 { | 45 { |
43 int i; | 46 int i; |
44 char * p; | 47 char * p; |
181 c=strlen( trbuf ); | 184 c=strlen( trbuf ); |
182 } | 185 } |
183 } | 186 } |
184 return trbuf; | 187 return trbuf; |
185 } | 188 } |
186 | |
187 static char * image_buffer = NULL; | |
188 static int image_width = 0; | |
189 | 189 |
190 void PutImage( txSample * bf,int x,int y,int max,int ofs ) | 190 void PutImage( txSample * bf,int x,int y,int max,int ofs ) |
191 { | 191 { |
192 int i=0,ix,iy; | 192 int i=0,ix,iy; |
193 uint32_t * buf = NULL; | 193 uint32_t * buf = NULL; |