From 1bd8624697c1377bf42f5aef4795a370c3b01c1d Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 25 Feb 2006 22:41:31 +0000 Subject: [PATCH] kill some warnings Originally committed as revision 5063 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 2 -- libavcodec/mpegvideo.c | 3 ++- libavcodec/vorbis.c | 2 +- libavcodec/vp3.c | 41 ----------------------------------------- libavformat/asf.c | 2 +- 5 files changed, 4 insertions(+), 46 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 770d552..9dfc89e 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index a7ae07b..bfa58e8 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; jmax_b_frames+1; j++){ diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c index 9cc09be..0b4b8e1 100644 --- a/libavcodec/vorbis.c +++ b/libavcodec/vorbis.c @@ -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;ipriv_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; diff --git a/libavformat/asf.c b/libavformat/asf.c index b0d0370..e22e6e3 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -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); -- 2.7.4