# HG changeset patch # User kabi # Date 1097052646 0 # Node ID 4623f54c98bb2e627679405a33116823c8241ff0 # Parent fbc9b13c35cddf089a08a971003c89dda080c19a * fixing a few of gcc 'clean-code' warnings diff -r fbc9b13c35cd -r 4623f54c98bb avformat.h --- a/avformat.h Sun Oct 03 18:21:45 2004 +0000 +++ b/avformat.h Wed Oct 06 08:50:46 2004 +0000 @@ -251,7 +251,7 @@ /* format I/O context */ typedef struct AVFormatContext { - AVClass *av_class; /* set by av_alloc_format_context */ + const AVClass *av_class; /* set by av_alloc_format_context */ /* can only be iformat or oformat, not both at the same time */ struct AVInputFormat *iformat; struct AVOutputFormat *oformat; diff -r fbc9b13c35cd -r 4623f54c98bb avienc.c --- a/avienc.c Sun Oct 03 18:21:45 2004 +0000 +++ b/avienc.c Wed Oct 06 08:50:46 2004 +0000 @@ -182,7 +182,7 @@ return 0; } -static unsigned int codec_get_asf_tag(const CodecTag *tags, int id) +static unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id) { while (tags->id != 0) { if (!tags->invalid_asf && tags->id == id) diff -r fbc9b13c35cd -r 4623f54c98bb mov.c --- a/mov.c Sun Oct 03 18:21:45 2004 +0000 +++ b/mov.c Wed Oct 06 08:50:46 2004 +0000 @@ -239,7 +239,7 @@ long current_sample; long left_in_chunk; /* how many samples before next chunk */ /* specific MPEG4 header which is added at the beginning of the stream */ - int header_len; + unsigned int header_len; uint8_t *header_data; MOV_esds_t esds; } MOVStreamContext;