]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
warning fixes by Luca Abeni, lucabe72 ##@## email ##.## it
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 25 Jan 2006 22:10:13 +0000 (22:10 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 25 Jan 2006 22:10:13 +0000 (22:10 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4898 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

ffmpeg.c
libavcodec/4xm.c
libavcodec/asv1.c
libavcodec/flac.c
libavcodec/h264.c
libavcodec/huffyuv.c
libavcodec/mdec.c
libavcodec/mpeg4data.h
libavcodec/mpegvideo.h
libavcodec/shorten.c
libavformat/utils.c

index c5f73624b23d21010016fc33be3f0498318d32b3..c8e11be110737502a1480e7d2e1e46cc10655ea6 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1172,7 +1172,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
     int data_size, got_picture;
     AVFrame picture;
     void *buffer_to_free;
-    static int samples_size= 0;
+    static unsigned int samples_size= 0;
     static short *samples= NULL;
     AVSubtitle subtitle, *subtitle_to_free;
     int got_subtitle;
index 107eaf213e1c76c46dba55492dc81b392dd24154..381e8553f695be300b9445a1532ab114574dc780 100644 (file)
@@ -123,7 +123,7 @@ typedef struct FourXContext{
     int last_dc;
     DCTELEM __align8 block[6][64];
     uint8_t *bitstream_buffer;
-    int bitstream_buffer_size;
+    unsigned int bitstream_buffer_size;
     CFrameBuffer cfrm[CFRAME_BUFFER_COUNT];
 } FourXContext;
 
index 222582cd5311738f6ad0d1e3912b63179083bfc5..99e563ee9f0f28f0d373b61e4ecf30b26cc9d706 100644 (file)
@@ -48,7 +48,7 @@ typedef struct ASV1Context{
     uint16_t __align8 intra_matrix[64];
     int __align8 q_intra_matrix[64];
     uint8_t *bitstream_buffer;
-    int bitstream_buffer_size;
+    unsigned int bitstream_buffer_size;
 } ASV1Context;
 
 static const uint8_t scantab[64]={
index d0efa16b46d888eeacb453659d30ac5406c008f9..97ac53745e8dc8c08151936292243d5cbdf2d6a9 100644 (file)
@@ -66,7 +66,7 @@ typedef struct FLACContext {
     uint8_t *bitstream;
     int bitstream_size;
     int bitstream_index;
-    int allocated_bitstream_size;
+    unsigned int allocated_bitstream_size;
 } FLACContext;
 
 #define METADATA_TYPE_STREAMINFO 0
index 744c0ad0f30ca3563ce9ec8631be99e72bdbacd6..43e349e36bd0d006d683b4eafb2ead4488a8c758 100644 (file)
@@ -162,7 +162,7 @@ typedef struct H264Context{
 #define NAL_SPS_EXT             13
 #define NAL_AUXILIARY_SLICE     19
     uint8_t *rbsp_buffer;
-    int rbsp_buffer_size;
+    unsigned int rbsp_buffer_size;
 
     /**
       * Used to parse AVC variant of h264
index 6233e24310db17d2d6d077b756719922dd0bc2ea..dc9e123ff445e45e77f6a35c0e59abbf38511e91 100644 (file)
@@ -72,7 +72,7 @@ typedef struct HYuvContext{
     VLC vlc[3];
     AVFrame picture;
     uint8_t *bitstream_buffer;
-    int bitstream_buffer_size;
+    unsigned int bitstream_buffer_size;
     DSPContext dsp;
 }HYuvContext;
 
index daff9499ae2c865147fb25e77d5a910987c3a4e5..4a346ef60927cf6f825a5df441bda8bff04f60ea 100644 (file)
@@ -49,7 +49,7 @@ typedef struct MDECContext{
     uint16_t __align8 intra_matrix[64];
     int __align8 q_intra_matrix[64];
     uint8_t *bitstream_buffer;
-    int bitstream_buffer_size;
+    unsigned int bitstream_buffer_size;
     int block_last_index[6];
 } MDECContext;
 
index 586a5871c4d072ef4dd10774db028ba1bc1dcf6c..804d2ded89778234b8e80e1d3b055cadff303551 100644 (file)
@@ -169,7 +169,7 @@ static const uint16_t inter_rvlc[170][2]={ //note this is identical to the intra
 {0x3F7C, 15},{0x3F7D, 15},{0x0000, 4}
 };
 
-static const uint8_t inter_rvlc_run[169]={
+static const int8_t inter_rvlc_run[169]={
  0,  0,  0,  0,  0,  0,  0,  0,
  0,  0,  0,  0,  0,  0,  0,  0,
  0,  0,  0,  1,  1,  1,  1,  1,
@@ -194,7 +194,7 @@ static const uint8_t inter_rvlc_run[169]={
 43, 44,
 };
 
-static const uint8_t inter_rvlc_level[169]={
+static const int8_t inter_rvlc_level[169]={
  1,  2,  3,  4,  5,  6,  7,  8,
  9, 10, 11, 12, 13, 14, 15, 16,
 17, 18, 19,  1,  2,  3,  4,  5,
@@ -273,7 +273,7 @@ static const uint16_t intra_rvlc[170][2]={
 {0x3F7C, 15},{0x3F7D, 15},{0x0000,  4}
 };
 
-static const uint8_t intra_rvlc_run[169]={
+static const int8_t intra_rvlc_run[169]={
  0,  0,  0,  0,  0,  0,  0,  0,
  0,  0,  0,  0,  0,  0,  0,  0,
  0,  0,  0,  0,  0,  0,  0,  0,
@@ -298,7 +298,7 @@ static const uint8_t intra_rvlc_run[169]={
 43, 44,
 };
 
-static const uint8_t intra_rvlc_level[169]={
+static const int8_t intra_rvlc_level[169]={
  1,  2,  3,  4,  5,  6,  7,  8,
  9, 10, 11, 12, 13, 14, 15, 16,
 17, 18, 19, 20, 21, 22, 23, 24,
index d45dbdad41906853067ca2e92c7e72076e6c196a..c1b7024662337f4d2823541fa909df07407c4930 100644 (file)
@@ -194,7 +194,7 @@ typedef struct ParseContext{
     uint8_t *buffer;
     int index;
     int last_index;
-    int buffer_size;
+    unsigned int buffer_size;
     uint32_t state;             ///< contains the last few bytes in MSB order
     int frame_start_found;
     int overread;               ///< the number of bytes which where irreversibly read from the next frame
@@ -610,7 +610,7 @@ typedef struct MpegEncContext {
     int divx_packed;
     uint8_t *bitstream_buffer; //Divx 5.01 puts several frames in a single one, this is used to reorder them
     int bitstream_buffer_size;
-    int allocated_bitstream_buffer_size;
+    unsigned int allocated_bitstream_buffer_size;
 
     int xvid_build;
 
index 22ed3568a8f7dd3b126673a72353e28a84a4409e..4d80d40a561a35bca1939a5b57bac23a7b0df75c 100644 (file)
@@ -84,7 +84,7 @@ typedef struct ShortenContext {
     uint8_t *bitstream;
     int bitstream_size;
     int bitstream_index;
-    int allocated_bitstream_size;
+    unsigned int allocated_bitstream_size;
     int header_size;
     uint8_t header[OUT_BUFFER_SIZE];
     int version;
index 5ed508dbcea9ca7bfb88526d5b88ae687994bf51..62ba0d3d45f825fa99ab871dade3380e744711e2 100644 (file)
@@ -3223,7 +3223,7 @@ int av_read_image(ByteIOContext *pb, const char *filename,
                   AVImageFormat *fmt,
                   int (*alloc_cb)(void *, AVImageInfo *info), void *opaque)
 {
-    char buf[PROBE_BUF_SIZE];
+    uint8_t buf[PROBE_BUF_SIZE];
     AVProbeData probe_data, *pd = &probe_data;
     offset_t pos;
     int ret;