[FFmpeg-devel] [PATCH] lavf: show APIC for tta files too

Paul B Mahol onemda at gmail.com
Fri Jun 7 13:07:47 CEST 2013


Closes #2638.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavformat/utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index d53e654..36ac17f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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
-- 
1.7.11.2



More information about the ffmpeg-devel mailing list