Revision 03700d39 libavformat/avienc.c

View differences:

libavformat/avienc.c
290 290
            return -1;
291 291
        }
292 292
        ff_end_tag(pb, strf);
293
        if ((t = av_metadata_get(s->streams[i]->metadata, "strn", NULL, 0))) {
294
            avi_write_info_tag(s->pb, t->key, t->value);
295
            t = NULL;
296
        }
297
        //FIXME a limitation of metadata conversion system
298
        else if ((t = av_metadata_get(s->streams[i]->metadata, "INAM", NULL, 0))) {
293
        if ((t = av_metadata_get(s->streams[i]->metadata, "title", NULL, 0))) {
299 294
            avi_write_info_tag(s->pb, "strn", t->value);
300 295
            t = NULL;
301 296
        }
......
375 370

  
376 371
    list2 = ff_start_tag(pb, "LIST");
377 372
    put_tag(pb, "INFO");
373
    metadata_conv(&s->metadata, ff_avi_metadata_conv, NULL);
378 374
    for (i = 0; *ff_avi_tags[i]; i++) {
379 375
        if ((t = av_metadata_get(s->metadata, ff_avi_tags[i], NULL, AV_METADATA_MATCH_CASE)))
380 376
            avi_write_info_tag(s->pb, t->key, t->value);
......
647 643
    avi_write_trailer,
648 644
    .codec_tag= (const AVCodecTag* const []){ff_codec_bmp_tags, ff_codec_wav_tags, 0},
649 645
    .flags= AVFMT_VARIABLE_FPS,
650
    .metadata_conv = ff_avi_metadata_conv,
651 646
};

Also available in: Unified diff