]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
* cleanup statics & const
authorkabi <kabi@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 11 Nov 2002 09:20:53 +0000 (09:20 +0000)
committerkabi <kabi@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 11 Nov 2002 09:20:53 +0000 (09:20 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1188 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libav/asf.c
libav/avienc.c
libav/avio.h
libav/aviobuf.c

index 4f82e65fa18027416dd1059feaf2dad33c8f7d4b..892d863c6f25c7dc6a6b7994bc06fd5480ea9659 100644 (file)
@@ -874,7 +874,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
                    st->codec.extradata = av_mallocz(st->codec.extradata_size);
                    get_buffer(pb, st->codec.extradata, st->codec.extradata_size);
                }
-                st->codec.codec_tag = tag1;
+                st->codec.codec_tag = st->codec.fourcc = tag1;
                st->codec.codec_id = codec_get_id(codec_bmp_tags, tag1);
             }
             pos2 = url_ftell(pb);
@@ -1202,7 +1202,7 @@ static int asf_read_seek(AVFormatContext *s, int64_t pts)
     return -1;
 }
 
-AVInputFormat asf_iformat = {
+static AVInputFormat asf_iformat = {
     "asf",
     "asf format",
     sizeof(ASFContext),
@@ -1213,7 +1213,7 @@ AVInputFormat asf_iformat = {
     asf_read_seek,
 };
 
-AVOutputFormat asf_oformat = {
+static AVOutputFormat asf_oformat = {
     "asf",
     "asf format",
     "application/octet-stream",
@@ -1230,7 +1230,7 @@ AVOutputFormat asf_oformat = {
     asf_write_trailer,
 };
 
-AVOutputFormat asf_stream_oformat = {
+static AVOutputFormat asf_stream_oformat = {
     "asf_stream",
     "asf format",
     "application/octet-stream",
index 27c8ac753fc5b7b482f5bd850e655f20fe08fb68..2270f8453e894b9ec1c2986e8475225591b04c43 100644 (file)
@@ -36,7 +36,7 @@ typedef struct {
     AVIIndex *first, *last;
 } AVIContext;
 
-offset_t start_tag(ByteIOContext *pb, char *tag)
+offset_t start_tag(ByteIOContext *pb, const char *tag)
 {
     put_tag(pb, tag);
     put_le32(pb, 0);
@@ -55,7 +55,7 @@ void end_tag(ByteIOContext *pb, offset_t start)
 
 /* Note: when encoding, the first matching tag is used, so order is
    important if multiple tags possible for a given codec. */
-CodecTag codec_bmp_tags[] = {
+const CodecTag codec_bmp_tags[] = {
     { CODEC_ID_H263, MKTAG('H', '2', '6', '3') },
     { CODEC_ID_H263P, MKTAG('H', '2', '6', '3') },
     { CODEC_ID_H263I, MKTAG('I', '2', '6', '3') }, /* intel h263 */
@@ -122,7 +122,7 @@ unsigned int codec_get_bmp_tag(int id)
 }
 
 /* BITMAPINFOHEADER header */
-void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, CodecTag *tags, int for_asf)
+void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf)
 {
     put_le32(pb, 40); /* size */
     put_le32(pb, enc->width);
@@ -138,7 +138,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, CodecTag *tags, int
     put_le32(pb, 0);
 }
 
-void parse_specific_params(AVCodecContext *stream, int *au_byterate, int *au_ssize, int *au_scale)
+static void parse_specific_params(AVCodecContext *stream, int *au_byterate, int *au_ssize, int *au_scale)
 {
     switch(stream->codec_id) {
     case CODEC_ID_PCM_S16LE:
index bf00f2edd13a021d58a51ef00e11be9fd1b3b374..541eff5ae0a79a1d4dafd5839d7a2c625ca8d5c9 100644 (file)
@@ -85,7 +85,7 @@ void put_le32(ByteIOContext *s, unsigned int val);
 void put_be32(ByteIOContext *s, unsigned int val);
 void put_le16(ByteIOContext *s, unsigned int val);
 void put_be16(ByteIOContext *s, unsigned int val);
-void put_tag(ByteIOContext *s, char *tag);
+void put_tag(ByteIOContext *s, const char *tag);
 
 void put_be64_double(ByteIOContext *s, double val);
 void put_strz(ByteIOContext *s, const char *buf);
index 27f6b5d38a57f9be9bd6d443592af17d1f392a15..2e931bd849fc6086bebedc8fe7bc71c0a6b3c9ea 100644 (file)
@@ -219,7 +219,7 @@ void put_be16(ByteIOContext *s, unsigned int val)
     put_byte(s, val);
 }
 
-void put_tag(ByteIOContext *s, char *tag)
+void put_tag(ByteIOContext *s, const char *tag)
 {
     while (*tag) {
         put_byte(s, *tag++);