Commit eacd6045 authored by Max Kellermann's avatar Max Kellermann

ffmpeg: support multiple tags

Call av_metadata_get() in a loop.
parent 637c6a18
ver 0.16 (20??/??/??) ver 0.16 (20??/??/??)
* decoders:
- ffmpeg: support multiple tags
* mixers: * mixers:
- removed support for legacy mixer configuration - removed support for legacy mixer configuration
* commands: * commands:
......
...@@ -342,8 +342,9 @@ static void ...@@ -342,8 +342,9 @@ static void
ffmpeg_copy_metadata(struct tag *tag, AVMetadata *m, ffmpeg_copy_metadata(struct tag *tag, AVMetadata *m,
enum tag_type type, const char *name) enum tag_type type, const char *name)
{ {
AVMetadataTag *mt = av_metadata_get(m, name, NULL, 0); AVMetadataTag *mt = NULL;
if (mt != NULL)
while ((mt = av_metadata_get(m, name, mt, 0)) != NULL)
tag_add_item(tag, type, mt->value); tag_add_item(tag, type, mt->value);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment