[FFmpeg-devel] [PATCH 4/4] add ff_ prefix to metadata_conv()

Anton Khirnov anton
Fri Oct 15 21:21:01 CEST 2010


---
 libavformat/asfdec.c         |    2 +-
 libavformat/asfenc.c         |    2 +-
 libavformat/avienc.c         |    2 +-
 libavformat/id3v2.c          |    2 +-
 libavformat/matroskadec.c    |    2 +-
 libavformat/metadata.c       |   12 ++++++------
 libavformat/metadata.h       |    4 ++--
 libavformat/mp3.c            |    2 +-
 libavformat/oggparsevorbis.c |    2 +-
 libavformat/vorbiscomment.c  |    2 +-
 10 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 519c15a..b4be9d4 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -659,7 +659,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
         }
     }
 
-    metadata_conv(&s->metadata, NULL, ff_asf_metadata_conv);
+    ff_metadata_conv(&s->metadata, NULL, ff_asf_metadata_conv);
 
     return 0;
 }
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 863709b..b964953 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -279,7 +279,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
     int bit_rate;
     int64_t duration;
 
-    metadata_conv(&s->metadata, ff_asf_metadata_conv, NULL);
+    ff_metadata_conv(&s->metadata, ff_asf_metadata_conv, NULL);
 
     tags[0] = av_metadata_get(s->metadata, "title"    , NULL, 0);
     tags[1] = av_metadata_get(s->metadata, "author"   , NULL, 0);
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 744e0a6..c9476d5 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -370,7 +370,7 @@ static int avi_write_header(AVFormatContext *s)
 
     list2 = ff_start_tag(pb, "LIST");
     put_tag(pb, "INFO");
-    metadata_conv(&s->metadata, ff_avi_metadata_conv, NULL);
+    ff_metadata_conv(&s->metadata, ff_avi_metadata_conv, NULL);
     for (i = 0; *ff_avi_tags[i]; i++) {
         if ((t = av_metadata_get(s->metadata, ff_avi_tags[i], NULL, AV_METADATA_MATCH_CASE)))
             avi_write_info_tag(s->pb, t->key, t->value);
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index d66509f..eec56b8 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -286,7 +286,7 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
         /* Skip to end of tag */
         url_fseek(s->pb, next, SEEK_SET);
     }
-    metadata_conv(&s->metadata, NULL, ff_id3v2_metadata_conv);
+    ff_metadata_conv(&s->metadata, NULL, ff_id3v2_metadata_conv);
     merge_date(&s->metadata);
 
     if (len > 0) {
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index b8a6711..136839a 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1048,7 +1048,7 @@ static void matroska_convert_tag(AVFormatContext *s, EbmlList *list,
                 matroska_convert_tag(s, &tags[i].sub, metadata, key);
         }
     }
-    metadata_conv(metadata, NULL, ff_mkv_metadata_conv);
+    ff_metadata_conv(metadata, NULL, ff_mkv_metadata_conv);
 }
 
 static void matroska_convert_tags(AVFormatContext *s)
diff --git a/libavformat/metadata.c b/libavformat/metadata.c
index b4d9c5e..1164fbb 100644
--- a/libavformat/metadata.c
+++ b/libavformat/metadata.c
@@ -113,8 +113,8 @@ void av_metadata_free(AVMetadata **pm)
     av_freep(pm);
 }
 
-void metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
-                                           const AVMetadataConv *s_conv)
+void ff_metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
+                                       const AVMetadataConv *s_conv)
 {
     /* TODO: use binary search to look up the two conversion tables
        if the tables are getting big enough that it would matter speed wise */
@@ -150,11 +150,11 @@ void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
                                                 const AVMetadataConv *s_conv)
 {
     int i;
-    metadata_conv(&ctx->metadata, d_conv, s_conv);
+    ff_metadata_conv(&ctx->metadata, d_conv, s_conv);
     for (i=0; i<ctx->nb_streams ; i++)
-        metadata_conv(&ctx->streams [i]->metadata, d_conv, s_conv);
+        ff_metadata_conv(&ctx->streams [i]->metadata, d_conv, s_conv);
     for (i=0; i<ctx->nb_chapters; i++)
-        metadata_conv(&ctx->chapters[i]->metadata, d_conv, s_conv);
+        ff_metadata_conv(&ctx->chapters[i]->metadata, d_conv, s_conv);
     for (i=0; i<ctx->nb_programs; i++)
-        metadata_conv(&ctx->programs[i]->metadata, d_conv, s_conv);
+        ff_metadata_conv(&ctx->programs[i]->metadata, d_conv, s_conv);
 }
diff --git a/libavformat/metadata.h b/libavformat/metadata.h
index 197ca51..9e86650 100644
--- a/libavformat/metadata.h
+++ b/libavformat/metadata.h
@@ -48,8 +48,8 @@ void ff_metadata_demux_compat(AVFormatContext *s);
 void ff_metadata_mux_compat(AVFormatContext *s);
 #endif
 
-void metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
-                                    const AVMetadataConv *s_conv);
+void ff_metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
+                                       const AVMetadataConv *s_conv);
 void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
                                                 const AVMetadataConv *s_conv);
 
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 77b131d..ceba2ce 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -315,7 +315,7 @@ static int mp3_write_header(struct AVFormatContext *s)
     size_pos = url_ftell(s->pb);
     put_be32(s->pb, 0);
 
-    metadata_conv(&s->metadata, ff_id3v2_metadata_conv, NULL);
+    ff_metadata_conv(&s->metadata, ff_id3v2_metadata_conv, NULL);
     while ((t = av_metadata_get(s->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) {
         uint32_t tag = 0;
 
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 9f87393..5b3ecbe 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -138,7 +138,7 @@ ff_vorbis_comment(AVFormatContext * as, AVMetadata **m, const uint8_t *buf, int
         av_log(as, AV_LOG_INFO,
                "truncated comment header, %i comments not found\n", n);
 
-    metadata_conv(m, NULL, ff_vorbiscomment_metadata_conv);
+    ff_metadata_conv(m, NULL, ff_vorbiscomment_metadata_conv);
 
     return 0;
 }
diff --git a/libavformat/vorbiscomment.c b/libavformat/vorbiscomment.c
index c84144e..d141b9d 100644
--- a/libavformat/vorbiscomment.c
+++ b/libavformat/vorbiscomment.c
@@ -55,7 +55,7 @@ int ff_vorbiscomment_length(AVMetadata *m, const char *vendor_string,
 int ff_vorbiscomment_write(uint8_t **p, AVMetadata **m,
                            const char *vendor_string, const unsigned count)
 {
-    metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);
+    ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);
     bytestream_put_le32(p, strlen(vendor_string));
     bytestream_put_buffer(p, vendor_string, strlen(vendor_string));
     if (*m) {
-- 
1.7.1




More information about the ffmpeg-devel mailing list