aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3.c
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2010-10-15 19:04:25 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-10-15 19:04:25 +0000
commit03700d399bcc749ad7916f2d39a99527f37c8b6e (patch)
tree20d22335ebef2e37679f6e3c71d1e264c1e38fe5 /libavformat/mp3.c
parented09233fa2b081e3f60c02267fe9d17e0bb45396 (diff)
downloadffmpeg-03700d399bcc749ad7916f2d39a99527f37c8b6e.tar.gz
Export metadata in the generic format. Deprecate old conversion API.
patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r--libavformat/mp3.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 4dfffec6de..77b131d5d5 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -195,7 +195,6 @@ AVInputFormat mp3_demuxer = {
mp3_read_packet,
.flags= AVFMT_GENERIC_INDEX,
.extensions = "mp2,mp3,m2a", /* XXX: use probe */
- .metadata_conv = ff_id3v2_metadata_conv,
};
#endif
@@ -294,7 +293,6 @@ AVOutputFormat mp2_muxer = {
NULL,
mp3_write_packet,
mp3_write_trailer,
- .metadata_conv = ff_id3v2_metadata_conv,
};
#endif
@@ -317,6 +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);
while ((t = av_metadata_get(s->metadata, "", t, AV_METADATA_IGNORE_SUFFIX))) {
uint32_t tag = 0;
@@ -366,6 +365,5 @@ AVOutputFormat mp3_muxer = {
mp3_write_packet,
mp3_write_trailer,
AVFMT_NOTIMESTAMPS,
- .metadata_conv = ff_id3v2_metadata_conv,
};
#endif