diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-06-04 02:16:02 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-06-04 03:10:57 +0400 |
commit | d19d679e4b589b9c6b154674a8d2ebfd804be125 (patch) | |
tree | fd3783cd181869a6b15b9dda3708e966175bcf82 /libavformat/aacdec.c | |
parent | 55121f3fa92901a1917f035df534e8caa82e4f71 (diff) |
lavf/aacdec: add support for reading ape tags
Closes #2634.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/aacdec.c')
-rw-r--r-- | libavformat/aacdec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index 9d7c6d711f..d93e75ec52 100644 --- a/libavformat/aacdec.c +++ b/libavformat/aacdec.c @@ -25,7 +25,7 @@ #include "internal.h" #include "rawdec.h" #include "id3v1.h" - +#include "apetag.h" static int adts_aac_probe(AVProbeData *p) { @@ -75,6 +75,12 @@ static int adts_aac_read_header(AVFormatContext *s) st->need_parsing = AVSTREAM_PARSE_FULL_RAW; ff_id3v1_read(s); + if (s->pb->seekable && + !av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX)) { + int64_t cur = avio_tell(s->pb); + ff_ape_parse_tag(s); + avio_seek(s->pb, cur, SEEK_SET); + } //LCM of all possible ADTS sample rates avpriv_set_pts_info(st, 64, 1, 28224000); |