changeset 1322:f78341ab5fba libavcodec

some warning fixes
author al3x
date Fri, 20 Jun 2003 15:21:25 +0000
parents 2365b4dfc450
children e9da5a651eab
files asv1.c h264.c mjpeg.c
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/asv1.c	Fri Jun 20 02:38:29 2003 +0000
+++ b/asv1.c	Fri Jun 20 15:21:25 2003 +0000
@@ -125,9 +125,9 @@
             }
 
             if(ccp&1) block[a->scantable.permutated[4*i+0]]= (get_level(&a->gb) * a->intra_matrix[4*i+0])>>4;
-            if(ccp&2) block[a->scantable.permutated[4*i+1]]= (get_level(&a->gb) * a->intra_matrix[4*i+1])>>4;;
-            if(ccp&4) block[a->scantable.permutated[4*i+2]]= (get_level(&a->gb) * a->intra_matrix[4*i+2])>>4;;
-            if(ccp&8) block[a->scantable.permutated[4*i+3]]= (get_level(&a->gb) * a->intra_matrix[4*i+3])>>4;;
+            if(ccp&2) block[a->scantable.permutated[4*i+1]]= (get_level(&a->gb) * a->intra_matrix[4*i+1])>>4;
+            if(ccp&4) block[a->scantable.permutated[4*i+2]]= (get_level(&a->gb) * a->intra_matrix[4*i+2])>>4;
+            if(ccp&8) block[a->scantable.permutated[4*i+3]]= (get_level(&a->gb) * a->intra_matrix[4*i+3])>>4;
         }
     }
 
--- a/h264.c	Fri Jun 20 02:38:29 2003 +0000
+++ b/h264.c	Fri Jun 20 15:21:25 2003 +0000
@@ -4009,8 +4009,8 @@
     MpegEncContext * const s = &h->s;
     AVCodecContext * const avctx= s->avctx;
     int buf_index=0;
+#if 0
     int i;
-#if 0
     for(i=0; i<32; i++){
         printf("%X ", buf[i]);
     }
--- a/mjpeg.c	Fri Jun 20 02:38:29 2003 +0000
+++ b/mjpeg.c	Fri Jun 20 15:21:25 2003 +0000
@@ -1599,7 +1599,7 @@
 static int mjpeg_decode_com(MJpegDecodeContext *s)
 {
     /* XXX: verify len field validity */
-    unsigned int len = get_bits(&s->gb, 16);
+    int len = get_bits(&s->gb, 16);
     if (len >= 2 && len < 32768) {
 	/* XXX: any better upper bound */
 	uint8_t *cbuf = av_malloc(len - 1);