changeset 1455:c4539ef4d8cb libavcodec

removed warnings
author bellard
date Tue, 09 Sep 2003 22:59:16 +0000
parents 8b6e5cca1d37
children 670fca257a69
files i386/motion_est_mmx.c mjpeg.c mpegvideo.h ratecontrol.c utils.c
diffstat 5 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/i386/motion_est_mmx.c	Tue Sep 09 22:56:25 2003 +0000
+++ b/i386/motion_est_mmx.c	Tue Sep 09 22:59:16 2003 +0000
@@ -26,7 +26,7 @@
 0x0002000200020002,
 };
 
-static __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL;
+static __attribute__ ((aligned(8), unused)) uint64_t bone= 0x0101010101010101LL;
 
 static inline void sad8_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
 {
--- a/mjpeg.c	Tue Sep 09 22:56:25 2003 +0000
+++ b/mjpeg.c	Tue Sep 09 22:59:16 2003 +0000
@@ -289,6 +289,7 @@
         case 4: ret= left   +   top - topleft; break;\
         case 5: ret= left   + ((top - topleft)>>1); break;\
         case 6: ret= top + ((left   - topleft)>>1); break;\
+        default:\
         case 7: ret= (left + top)>>1; break;\
     }
 
@@ -1364,7 +1365,7 @@
 
 static int mjpeg_decode_sos(MJpegDecodeContext *s)
 {
-    int len, nb_components, i, h, v, predictor, point_transform, ilv;
+    int len, nb_components, i, h, v, predictor, point_transform;
     int vmax, hmax, index, id;
     const int block_size= s->lossless ? 1 : 8;
 
--- a/mpegvideo.h	Tue Sep 09 22:56:25 2003 +0000
+++ b/mpegvideo.h	Tue Sep 09 22:59:16 2003 +0000
@@ -869,6 +869,7 @@
 int ff_msmpeg4_decode_init(MpegEncContext *s);
 void ff_msmpeg4_encode_init(MpegEncContext *s);
 int ff_wmv2_decode_picture_header(MpegEncContext * s);
+int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s);
 void ff_wmv2_add_mb(MpegEncContext *s, DCTELEM block[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr);
 void ff_mspel_motion(MpegEncContext *s,
                                uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
--- a/ratecontrol.c	Tue Sep 09 22:56:25 2003 +0000
+++ b/ratecontrol.c	Tue Sep 09 22:59:16 2003 +0000
@@ -602,6 +602,7 @@
 
     var= pict_type == I_TYPE ? pic->mb_var_sum : pic->mc_mb_var_sum;
     
+    short_term_q = 0; /* avoid warning */
     if(s->flags&CODEC_FLAG_PASS2){
         if(pict_type!=I_TYPE)
             assert(pict_type == rce->new_pict_type);
--- a/utils.c	Tue Sep 09 22:56:25 2003 +0000
+++ b/utils.c	Tue Sep 09 22:59:16 2003 +0000
@@ -222,6 +222,7 @@
     assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
     assert(s->internal_buffer_count);
 
+    buf = NULL; /* avoids warning */
     for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize
         buf= &((InternalBuffer*)s->internal_buffer)[i];
         if(buf->data[0] == pic->data[0])