[SCM] libav/experimental: * more warning cleanups * adding const & statics

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:31:22 UTC 2013


The following commit has been merged in the experimental branch:
commit a266644f560f5292eea477093fb9183099f3921b
Author: Zdenek Kabelac <kabi at informatics.muni.cz>
Date:   Mon Apr 8 15:07:42 2002 +0000

    * more warning cleanups
    * adding const & statics
    
    Originally committed as revision 387 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libav/au.c b/libav/au.c
index 7aefb1a..5f57ce2 100644
--- a/libav/au.c
+++ b/libav/au.c
@@ -73,7 +73,7 @@ static int au_write_header(AVFormatContext *s)
 }
 
 static int au_write_packet(AVFormatContext *s, int stream_index_ptr,
-                           UINT8 *buf, int size)
+                           UINT8 *buf, int size, int force_pts)
 {
     ByteIOContext *pb = &s->pb;
     put_buffer(pb, buf, size);
diff --git a/libav/avi.h b/libav/avi.h
index e44f5b7..ee48f4d 100644
--- a/libav/avi.h
+++ b/libav/avi.h
@@ -21,8 +21,8 @@ typedef struct CodecTag {
 extern CodecTag codec_bmp_tags[];
 extern CodecTag codec_wav_tags[];
 
-unsigned int codec_get_tag(CodecTag *tags, int id);
-int codec_get_id(CodecTag *tags, unsigned int tag);
+unsigned int codec_get_tag(const CodecTag *tags, int id);
+int codec_get_id(const CodecTag *tags, unsigned int tag);
 
 /* avidec.c */
 int avi_read_header(AVFormatContext *s, AVFormatParameters *ap);
diff --git a/libav/avienc.c b/libav/avienc.c
index b21a252..e6673cc 100644
--- a/libav/avienc.c
+++ b/libav/avienc.c
@@ -68,7 +68,7 @@ CodecTag codec_bmp_tags[] = {
     { 0, 0 },
 };
 
-unsigned int codec_get_tag(CodecTag *tags, int id)
+unsigned int codec_get_tag(const CodecTag *tags, int id)
 {
     while (tags->id != 0) {
         if (tags->id == id)
@@ -78,7 +78,7 @@ unsigned int codec_get_tag(CodecTag *tags, int id)
     return 0;
 }
 
-int codec_get_id(CodecTag *tags, unsigned int tag)
+int codec_get_id(const CodecTag *tags, unsigned int tag)
 {
     while (tags->id != 0) {
         if (tags->tag == tag)
diff --git a/libav/gif.c b/libav/gif.c
index 5048658..f8a7fc0 100644
--- a/libav/gif.c
+++ b/libav/gif.c
@@ -365,7 +365,7 @@ static int gif_write_video(AVFormatContext *s,
 }
 
 static int gif_write_packet(AVFormatContext *s, int stream_index, 
-                           UINT8 *buf, int size)
+                           UINT8 *buf, int size, int force_pts)
 {
     AVCodecContext *codec = &s->streams[stream_index]->codec;
     if (codec->codec_type == CODEC_TYPE_AUDIO)
@@ -401,4 +401,3 @@ AVFormat gif_format = {
     NULL, /* read_packet */
     NULL, /* read_close */
 };
-
diff --git a/libav/mov.c b/libav/mov.c
index ca61fa9..b2b3e9a 100644
--- a/libav/mov.c
+++ b/libav/mov.c
@@ -76,7 +76,7 @@ void print_atom(const char *str, UINT32 type, UINT64 offset, UINT64 size)
 /* getting rid of these */
 #define CODEC_TYPE_MOV_OTHER 2
 
-CodecTag mov_video_tags[] = {
+static const CodecTag mov_video_tags[] = {
 /*  { CODEC_ID_, MKTAG('c', 'v', 'i', 'd') }, *//* Cinepak */
 /*  { CODEC_ID_JPEG, MKTAG('j', 'p', 'e', 'g') }, *//* JPEG */
     { CODEC_ID_H263, MKTAG('r', 'a', 'w', ' ') }, /* Uncompressed RGB */
@@ -97,7 +97,7 @@ CodecTag mov_video_tags[] = {
     { 0, 0 }, 
 };
 
-CodecTag mov_audio_tags[] = {
+static const CodecTag mov_audio_tags[] = {
 /*    { CODEC_ID_PCM_S16BE, MKTAG('N', 'O', 'N', 'E') }, *//* uncompressed */
     { CODEC_ID_PCM_S16BE, MKTAG('t', 'w', 'o', 's') }, /* 16 bits */
     { CODEC_ID_PCM_S8, MKTAG('t', 'w', 'o', 's') }, /* 8 bits */
@@ -765,7 +765,7 @@ static void mov_free_stream_context(MOVStreamContext *sc)
     }
 }
 
-int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
+static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
     MOVContext *mov;
     ByteIOContext *pb = &s->pb;
@@ -839,7 +839,7 @@ int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
 
 /* Yes, this is ugly... I didn't write the specs of QT :p */
 /* XXX:remove useless commented code sometime */
-int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
+static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     MOVContext *mov = s->priv_data;
     INT64 offset = 0x0FFFFFFFFFFFFFFF;
@@ -911,7 +911,7 @@ again:
     return 0;
 }
 
-int mov_read_close(AVFormatContext *s)
+static int mov_read_close(AVFormatContext *s)
 {
     int i;
     MOVContext *mov = s->priv_data;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list