summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2004-10-06 08:50:46 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2004-10-06 08:50:46 +0000
commit7fea94ce4af2c97cbfc0a279fe7a755f9185f343 (patch)
tree3a57473464a85cbe464d056ae5db963c17e19abd /libavformat
parenta319bbac5c1b887894a4edea8bb0016161e239a2 (diff)
* fixing a few of gcc 'clean-code' warnings
Originally committed as revision 3563 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avformat.h2
-rw-r--r--libavformat/avienc.c2
-rw-r--r--libavformat/mov.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 888b8b334b..a4793a7ca7 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -251,7 +251,7 @@ typedef struct AVStream {
/* 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 --git a/libavformat/avienc.c b/libavformat/avienc.c
index 4d2981780c..a9d2c2dc3f 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -182,7 +182,7 @@ unsigned int codec_get_tag(const CodecTag *tags, int id)
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 --git a/libavformat/mov.c b/libavformat/mov.c
index 001481e0d7..e82e2f109c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -239,7 +239,7 @@ typedef struct MOVStreamContext {
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;