changeset 549:4623f54c98bb libavformat

* fixing a few of gcc 'clean-code' warnings
author kabi
date Wed, 06 Oct 2004 08:50:46 +0000
parents fbc9b13c35cd
children bc2751b2c189
files avformat.h avienc.c mov.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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)
--- 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;