Browse code

remove warnings

Originally committed as revision 9741 to svn://svn.ffmpeg.org/ffmpeg/trunk

Benoit Fouet authored on 2007/07/19 00:38:04
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@
16 16
 #ifdef DEBUG
17 17
 #define dbgprintf printf
18 18
 #else
19
-#define dbgprintf
19
+#define dbgprintf(...)
20 20
 #endif
21 21
 
22 22
 int main(int argc, char *argv[])
... ...
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
97 97
             exit(1);
98 98
         }
99 99
 
100
-        dbgprintf("a_in: %d t_in: %d a_out: %d t_out: %d -- %d out\n",
100
+        dbgprintf("a_in: %d t_in: %lu a_out: %d t_out: %lu -- %lu out\n",
101 101
             zstream.avail_in, zstream.total_in, zstream.avail_out, zstream.total_out,
102 102
             zstream.total_out-last_out);
103 103
 
... ...
@@ -111,13 +111,13 @@ int main(int argc, char *argv[])
111 111
 
112 112
     if (zstream.total_out != uncomp_len-8)
113 113
     {
114
-        printf("Size mismatch (%d != %d), updating header...\n",
114
+        printf("Size mismatch (%lu != %d), updating header...\n",
115 115
             zstream.total_out, uncomp_len-8);
116 116
 
117 117
         buf_in[0] = (zstream.total_out+8) & 0xff;
118
-        buf_in[1] = (zstream.total_out+8 >> 8) & 0xff;
119
-        buf_in[2] = (zstream.total_out+8 >> 16) & 0xff;
120
-        buf_in[3] = (zstream.total_out+8 >> 24) & 0xff;
118
+        buf_in[1] = ((zstream.total_out+8) >> 8) & 0xff;
119
+        buf_in[2] = ((zstream.total_out+8) >> 16) & 0xff;
120
+        buf_in[3] = ((zstream.total_out+8) >> 24) & 0xff;
121 121
 
122 122
         lseek(fd_out, 4, SEEK_SET);
123 123
         write(fd_out, &buf_in, 4);