diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-02-02 12:35:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-02-02 17:55:58 +0100 |
commit | 766b9fd453af163c41bc77aa08fda0988b024d8e (patch) | |
tree | 3f07497a583e46ec3cdac3239dbf68e0989d31ab | |
parent | 891dab7b915ae30490b2dd8e0a91884badaab655 (diff) | |
download | mpd-766b9fd453af163c41bc77aa08fda0988b024d8e.tar.gz mpd-766b9fd453af163c41bc77aa08fda0988b024d8e.tar.xz mpd-766b9fd453af163c41bc77aa08fda0988b024d8e.zip |
ffmpeg: read more metadata.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_decoder_plugin.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 678bba6fa..10086b34b 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -387,12 +387,23 @@ ffmpeg_stream_tag(struct input_stream *is) av_metadata_conv(f, NULL, f->iformat->metadata_conv); ffmpeg_copy_metadata(tag, f->metadata, TAG_TITLE, "title"); +#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(50<<8)) + ffmpeg_copy_metadata(tag, f->metadata, TAG_ARTIST, "artist"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_DATE, "date"); +#else ffmpeg_copy_metadata(tag, f->metadata, TAG_ARTIST, "author"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_DATE, "year"); +#endif ffmpeg_copy_metadata(tag, f->metadata, TAG_ALBUM, "album"); ffmpeg_copy_metadata(tag, f->metadata, TAG_COMMENT, "comment"); ffmpeg_copy_metadata(tag, f->metadata, TAG_GENRE, "genre"); ffmpeg_copy_metadata(tag, f->metadata, TAG_TRACK, "track"); - ffmpeg_copy_metadata(tag, f->metadata, TAG_DATE, "year"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_ARTIST_SORT, "author-sort"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_ALBUM_ARTIST, "album_artist"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_ALBUM_ARTIST_SORT, "album_artist-sort"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_COMPOSER, "composer"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_PERFORMER, "performer"); + ffmpeg_copy_metadata(tag, f->metadata, TAG_DISC, "disc"); #else if (f->author[0]) tag_add_item(tag, TAG_ARTIST, f->author); |