avformat: Fix apics with aac
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Mar 2013 12:55:43 +0000 (13:55 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 7 Mar 2013 14:01:31 +0000 (15:01 +0100)
Fixes Ticket2318

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cada996528422907b8b818e99029a8e3b97cf08d)

libavformat/utils.c

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