aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2012-10-25 22:45:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-26 01:52:40 +0200
commitcfb1c3c9f01a032c54e89880fb912cab2de2a735 (patch)
treef53b0264a3eb33727c990055079d8c0383a2e2cf
parent73f9d2e887310824b187c2f8b071ba96f6f9f3df (diff)
downloadffmpeg-cfb1c3c9f01a032c54e89880fb912cab2de2a735.tar.gz
aiffdec: read ID3 attached pictures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/aiffdec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 56338c0f9d..79b78533e3 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -191,7 +191,7 @@ static int aiff_probe(AVProbeData *p)
/* aiff input */
static int aiff_read_header(AVFormatContext *s)
{
- int size, filesize;
+ int ret, size, filesize;
int64_t offset = 0;
uint32_t tag;
unsigned version = AIFF_C_VERSION1;
@@ -237,6 +237,11 @@ static int aiff_read_header(AVFormatContext *s)
break;
case MKTAG('I', 'D', '3', ' '):
ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC, &id3v2_extra_meta);
+ if (id3v2_extra_meta)
+ if ((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0) {
+ ff_id3v2_free_extra_meta(&id3v2_extra_meta);
+ return ret;
+ }
ff_id3v2_free_extra_meta(&id3v2_extra_meta);
break;
case MKTAG('F', 'V', 'E', 'R'): /* Version chunk */