add ff_ prefix to metadata_conv()

patch by Anton Khirnov  anton _at_ khirnov _dot_ net

Originally committed as revision 25505 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Anton Khirnov 14 years ago committed by Aurelien Jacobs
parent d60a9f52eb
commit ad7768f4c4
  1. 2
      libavformat/asfdec.c
  2. 2
      libavformat/asfenc.c
  3. 2
      libavformat/avienc.c
  4. 2
      libavformat/id3v2.c
  5. 2
      libavformat/matroskadec.c
  6. 10
      libavformat/metadata.c
  7. 2
      libavformat/metadata.h
  8. 2
      libavformat/mp3.c
  9. 2
      libavformat/oggparsevorbis.c
  10. 2
      libavformat/vorbiscomment.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; return 0;
} }

@ -279,7 +279,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
int bit_rate; int bit_rate;
int64_t duration; 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[0] = av_metadata_get(s->metadata, "title" , NULL, 0);
tags[1] = av_metadata_get(s->metadata, "author" , NULL, 0); tags[1] = av_metadata_get(s->metadata, "author" , NULL, 0);

@ -370,7 +370,7 @@ static int avi_write_header(AVFormatContext *s)
list2 = ff_start_tag(pb, "LIST"); list2 = ff_start_tag(pb, "LIST");
put_tag(pb, "INFO"); 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++) { for (i = 0; *ff_avi_tags[i]; i++) {
if ((t = av_metadata_get(s->metadata, ff_avi_tags[i], NULL, AV_METADATA_MATCH_CASE))) 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); avi_write_info_tag(s->pb, t->key, t->value);

@ -250,7 +250,7 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
/* Skip to end of tag */ /* Skip to end of tag */
url_fseek(s->pb, next, SEEK_SET); 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);
if (len > 0) { if (len > 0) {
/* Skip padding */ /* Skip padding */

@ -1048,7 +1048,7 @@ static void matroska_convert_tag(AVFormatContext *s, EbmlList *list,
matroska_convert_tag(s, &tags[i].sub, metadata, key); 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) static void matroska_convert_tags(AVFormatContext *s)

@ -113,7 +113,7 @@ void av_metadata_free(AVMetadata **pm)
av_freep(pm); av_freep(pm);
} }
void metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv, void ff_metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
const AVMetadataConv *s_conv) const AVMetadataConv *s_conv)
{ {
/* TODO: use binary search to look up the two conversion tables /* TODO: use binary search to look up the two conversion tables
@ -150,11 +150,11 @@ void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
const AVMetadataConv *s_conv) const AVMetadataConv *s_conv)
{ {
int i; 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++) 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++) 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++) 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);
} }

@ -48,7 +48,7 @@ void ff_metadata_demux_compat(AVFormatContext *s);
void ff_metadata_mux_compat(AVFormatContext *s); void ff_metadata_mux_compat(AVFormatContext *s);
#endif #endif
void metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv, void ff_metadata_conv(AVMetadata **pm, const AVMetadataConv *d_conv,
const AVMetadataConv *s_conv); const AVMetadataConv *s_conv);
void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv, void ff_metadata_conv_ctx(AVFormatContext *ctx, const AVMetadataConv *d_conv,
const AVMetadataConv *s_conv); const AVMetadataConv *s_conv);

@ -315,7 +315,7 @@ static int mp3_write_header(struct AVFormatContext *s)
size_pos = url_ftell(s->pb); size_pos = url_ftell(s->pb);
put_be32(s->pb, 0); 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))) { while ((t = av_metadata_get(s->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) {
uint32_t tag = 0; uint32_t tag = 0;

@ -138,7 +138,7 @@ ff_vorbis_comment(AVFormatContext * as, AVMetadata **m, const uint8_t *buf, int
av_log(as, AV_LOG_INFO, av_log(as, AV_LOG_INFO,
"truncated comment header, %i comments not found\n", n); "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; return 0;
} }

@ -55,7 +55,7 @@ int ff_vorbiscomment_length(AVMetadata *m, const char *vendor_string,
int ff_vorbiscomment_write(uint8_t **p, AVMetadata **m, int ff_vorbiscomment_write(uint8_t **p, AVMetadata **m,
const char *vendor_string, const unsigned count) 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_le32(p, strlen(vendor_string));
bytestream_put_buffer(p, vendor_string, strlen(vendor_string)); bytestream_put_buffer(p, vendor_string, strlen(vendor_string));
if (*m) { if (*m) {

Loading…
Cancel
Save