From 12bc20502ad9124b4d922985b82edc45aa4064cb Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Fri, 25 Nov 2011 00:02:43 +0400 Subject: Generalize RIFF INFO tag support; support reading INFO tag in wav Signed-off-by: Ronald S. Bultje --- libavformat/avienc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/avienc.c') diff --git a/libavformat/avienc.c b/libavformat/avienc.c index cf2e1d601d..b4521cd6ef 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -378,9 +378,9 @@ static int avi_write_header(AVFormatContext *s) list2 = ff_start_tag(pb, "LIST"); ffio_wfourcc(pb, "INFO"); - ff_metadata_conv(&s->metadata, ff_avi_metadata_conv, NULL); - for (i = 0; *ff_avi_tags[i]; i++) { - if ((t = av_dict_get(s->metadata, ff_avi_tags[i], NULL, AV_DICT_MATCH_CASE))) + ff_metadata_conv(&s->metadata, ff_riff_info_conv, NULL); + for (i = 0; *ff_riff_tags[i]; i++) { + if ((t = av_dict_get(s->metadata, ff_riff_tags[i], NULL, AV_DICT_MATCH_CASE))) avi_write_info_tag(s->pb, t->key, t->value); } ff_end_tag(pb, list2); -- cgit v1.2.3