changeset 5254:727a49c28c51 libavcodec

trivial warning fixes
author mru
date Sun, 08 Jul 2007 23:14:54 +0000
parents a69976bf878c
children 669a97223dc7
files cavs.h h264.c mpegvideo.h snow.c
diffstat 4 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/cavs.h	Sun Jul 08 13:34:02 2007 +0000
+++ b/cavs.h	Sun Jul 08 23:14:54 2007 +0000
@@ -404,8 +404,6 @@
     h->col_type = &h->col_type_base[h->mby*h->mb_width + h->mbx];
 }
 
-static inline void check_for_slice(AVSContext *h);
-
 /**
  * save predictors for later macroblocks and increase
  * macroblock address
--- a/h264.c	Sun Jul 08 13:34:02 2007 +0000
+++ b/h264.c	Sun Jul 08 23:14:54 2007 +0000
@@ -5714,7 +5714,6 @@
 
     int index[64];
 
-    int last;
     int coeff_count = 0;
 
     int abslevel1 = 1;
--- a/mpegvideo.h	Sun Jul 08 13:34:02 2007 +0000
+++ b/mpegvideo.h	Sun Jul 08 23:14:54 2007 +0000
@@ -871,7 +871,7 @@
 int ff_h263_get_gob_height(MpegEncContext *s);
 void ff_mpeg4_init_direct_mv(MpegEncContext *s);
 int ff_mpeg4_set_direct_mv(MpegEncContext *s, int mx, int my);
-int ff_h263_round_chroma(int x);
+inline int ff_h263_round_chroma(int x);
 void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code);
 
 
--- a/snow.c	Sun Jul 08 13:34:02 2007 +0000
+++ b/snow.c	Sun Jul 08 23:14:54 2007 +0000
@@ -2350,7 +2350,7 @@
     }
 }
 
-static void mc_block(uint8_t *dst, uint8_t *src, uint8_t *tmp, int stride, int b_w, int b_h, int dx, int dy){
+static void mc_block(uint8_t *dst, const uint8_t *src, uint8_t *tmp, int stride, int b_w, int b_h, int dx, int dy){
     int x, y;
 START_TIMER
     for(y=0; y < b_h+5; y++){
@@ -2420,7 +2420,7 @@
 }
 
 #define mca(dx,dy,b_w)\
-static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, uint8_t *src, int stride, int h){\
+static void mc_block_hpel ## dx ## dy ## b_w(uint8_t *dst, const uint8_t *src, int stride, int h){\
     uint8_t tmp[stride*(b_w+5)];\
     assert(h==b_w);\
     mc_block(dst, src-2-2*stride, tmp, stride, b_w, b_w, dx, dy);\