avformat/utils: add support for reading ID3 tags at start of wav
authorPaul B Mahol <onemda@gmail.com>
Wed, 12 Dec 2018 18:24:21 +0000 (19:24 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 13 Dec 2018 09:01:15 +0000 (10:01 +0100)
Fixes #4140.

libavformat/utils.c

index 93e588e..7afef54 100644 (file)
@@ -646,7 +646,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 
     if (id3v2_extra_meta) {
         if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac") ||
-            !strcmp(s->iformat->name, "tta")) {
+            !strcmp(s->iformat->name, "tta") || !strcmp(s->iformat->name, "wav")) {
             if ((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0)
                 goto fail;
             if ((ret = ff_id3v2_parse_chapters(s, &id3v2_extra_meta)) < 0)