changeset 1545:b340e83b8d0d libavcodec

gcc->C99 and warning fixes patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
author michael
date Sun, 19 Oct 2003 21:05:41 +0000
parents 2335dcb71152
children 5d06823e2ee9
files avcodec.h common.h dvdata.h ffv1.c interplayvideo.c
diffstat 5 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Sat Oct 18 18:47:06 2003 +0000
+++ b/avcodec.h	Sun Oct 19 21:05:41 2003 +0000
@@ -208,8 +208,8 @@
 
 /* ME algos sorted by quality */
 //FIXME remove IMHO
-static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, 
-                                       ME_X1, ME_EPZS, ME_FULL };
+static const __attribute__((unused)) int Motion_Est_QTab[] =
+ { ME_ZERO, ME_PHODS, ME_LOG, ME_X1, ME_EPZS, ME_FULL };
 
 
 #define FF_MAX_B_FRAMES 8
--- a/common.h	Sat Oct 18 18:47:06 2003 +0000
+++ b/common.h	Sun Oct 19 21:05:41 2003 +0000
@@ -185,9 +185,9 @@
 #    else
 
 #        ifdef DEBUG
-#            define dprintf(fmt,args...) printf(fmt, ## args)
+#            define dprintf(fmt,...) printf(fmt, __VA_ARGS__)
 #        else
-#            define dprintf(fmt,args...)
+#            define dprintf(fmt,...)
 #        endif
 
 #    endif /* !CONFIG_WIN32 */
--- a/dvdata.h	Sat Oct 18 18:47:06 2003 +0000
+++ b/dvdata.h	Sun Oct 19 21:05:41 2003 +0000
@@ -1293,7 +1293,7 @@
   {  31,  67, 103,  21,  57,  93,  11,  47,  83},
 };
 
-static const int dv_audio_frequency[3] = {
+static const __attribute__((unused)) int dv_audio_frequency[3] = {
     48000, 44100, 32000,
 };
     
--- a/ffv1.c	Sat Oct 18 18:47:06 2003 +0000
+++ b/ffv1.c	Sun Oct 19 21:05:41 2003 +0000
@@ -21,7 +21,7 @@
  
 /**
  * @file ffv1.c
- * FF Video Codec 1 (a experimental lossless codec)
+ * FF Video Codec 1 (an experimental lossless codec)
  */
 
 #include "common.h"
--- a/interplayvideo.c	Sat Oct 18 18:47:06 2003 +0000
+++ b/interplayvideo.c	Sun Oct 19 21:05:41 2003 +0000
@@ -876,7 +876,7 @@
 
     if (s->avctx->extradata_size != sizeof(AVPaletteControl)) {
         printf (" Interplay video: expected extradata_size of %d\n",
-            sizeof(AVPaletteControl));
+		(int)sizeof(AVPaletteControl));
         return -1;
     }