# HG changeset patch # User bellard # Date 1063148356 0 # Node ID c4539ef4d8cbcf3df9d0813d94d75f678be347de # Parent 8b6e5cca1d37f19cb0c00926ec2ee1e3e617fd0b removed warnings diff -r 8b6e5cca1d37 -r c4539ef4d8cb i386/motion_est_mmx.c --- 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) { diff -r 8b6e5cca1d37 -r c4539ef4d8cb mjpeg.c --- 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; diff -r 8b6e5cca1d37 -r c4539ef4d8cb mpegvideo.h --- 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, diff -r 8b6e5cca1d37 -r c4539ef4d8cb ratecontrol.c --- 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); diff -r 8b6e5cca1d37 -r c4539ef4d8cb utils.c --- 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; iinternal_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])