lavf: show APIC for tta files too
authorPaul B Mahol <onemda@gmail.com>
Sun, 16 Jun 2013 18:49:51 +0000 (18:49 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 16 Jun 2013 18:56:56 +0000 (18:56 +0000)
Fixes #2676.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/utils.c

index d53e654..36ac17f 100644 (file)
@@ -669,7 +669,8 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma
             goto fail;
 
     if (id3v2_extra_meta) {
-        if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac")) {
+        if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac") ||
+            !strcmp(s->iformat->name, "tta")) {
             if((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0)
                 goto fail;
         } else