]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
kill some warnings
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 25 Feb 2006 22:41:31 +0000 (22:41 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 25 Feb 2006 22:41:31 +0000 (22:41 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5063 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264.c
libavcodec/mpegvideo.c
libavcodec/vorbis.c
libavcodec/vp3.c
libavformat/asf.c

index 770d552f6598082396850969d8de0bf0a441cc8a..9dfc89e234d0c8c6b8619d3060a1195158a8e4a0 100644 (file)
@@ -5388,8 +5388,6 @@ static const uint8_t block_idx_xy[4][4] = {
 };
 
 static int decode_cabac_mb_cbp_luma( H264Context *h) {
-    MpegEncContext * const s = &h->s;
-
     int cbp = 0;
     int cbp_b = -1;
     int i8x8;
index a7ae07b412dcf8a4693facb610a860b383cf6950..bfa58e826bfea44dc8451e78f134c397a12c0b3d 100644 (file)
@@ -2230,7 +2230,8 @@ static int estimate_best_b_count(MpegEncContext *s){
         input[i].linesize[2]= c->width/2;
 
         if(!i || s->input_picture[i-1])
-            img_resample(resample, &input[i], &pre_input);
+            img_resample(resample, (AVPicture*)&input[i],
+                         (AVPicture*)&pre_input);
     }
 
     for(j=0; j<s->max_b_frames+1; j++){
index 9cc09bed17effd54f286c2175e7f15dcac285fb0..0b4b8e1880ab081d9065fa8f057f5fbf0fca8745 100644 (file)
@@ -1345,7 +1345,7 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa
 
                         AV_DEBUG("Classword: %d \n", temp);
 
-                        assert(vr->classifications > 1 && vr->classifications<256 && temp<=65536); //needed for inverse[]
+                        assert(vr->classifications > 1 && temp<=65536); //needed for inverse[]
                         for(i=0;i<c_p_c;++i) {
                             uint_fast32_t temp2;
 
index a7a9e8bacdb0020c38e8e31f62b8cfb618bfaf3b..163847013e36d0e6f9324af66f0d7cedd85a05b7 100644 (file)
@@ -328,7 +328,6 @@ typedef struct Vp3DecodeContext {
     int bounding_values_array[256];
 } Vp3DecodeContext;
 
-static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb);
 static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb);
 
 /************************************************************************
@@ -2737,46 +2736,6 @@ static inline int theora_get_32bit(GetBitContext gb)
     return ret;
 }
 
-static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb)
-{
-    Vp3DecodeContext *s = avctx->priv_data;
-    int len;
-
-    if (s->theora <= 0x030200)
-    {
-        int i, comments;
-
-        // vendor string
-        len = get_bits_long(&gb, 32);
-        len = le2me_32(len);
-        while(len--)
-            skip_bits(&gb, 8);
-
-        // user comments
-        comments = get_bits_long(&gb, 32);
-        comments = le2me_32(comments);
-        for (i = 0; i < comments; i++)
-        {
-            len = get_bits_long(&gb, 32);
-            len = be2me_32(len);
-            while(len--)
-                skip_bits(&gb, 8);
-        }
-    }
-    else
-    {
-        do {
-            len = get_bits_long(&gb, 32);
-            len = le2me_32(len);
-            if (len <= 0)
-                break;
-            while (len--)
-                skip_bits(&gb, 8);
-        } while (1);
-    }
-    return 0;
-}
-
 static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
 {
     Vp3DecodeContext *s = avctx->priv_data;
index b0d037089c1046f4dc699612148c1b3331e9d8ca..e22e6e3940ba7eb16160648c1a4e9da8b84592f5 100644 (file)
@@ -376,7 +376,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
         } else if (!memcmp(&g, &ext_stream_header, sizeof(GUID))) {
             int ext_len, payload_ext_ct, stream_ct;
             uint32_t ext_d;
-            int64_t pos_ex_st, pos_curr;
+            int64_t pos_ex_st;
             pos_ex_st = url_ftell(pb);
 
             get_le64(pb);