diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-06-03 22:52:50 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-06-03 23:04:43 +0000 |
commit | 55121f3fa92901a1917f035df534e8caa82e4f71 (patch) | |
tree | ada0de8a0f11fbef649843be65bada1ef7bc99e0 /libavformat/tta.c | |
parent | 0e84ba747efae172c7d95c8c05e5baefafe345d9 (diff) | |
download | ffmpeg-55121f3fa92901a1917f035df534e8caa82e4f71.tar.gz |
tta: add support for reading ape tags
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/tta.c')
-rw-r--r-- | libavformat/tta.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c index 7db1a90a1b..f9ef5975cf 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -20,6 +20,7 @@ */ #include "libavcodec/get_bits.h" +#include "apetag.h" #include "avformat.h" #include "avio_internal.h" #include "internal.h" @@ -58,6 +59,10 @@ static int tta_read_header(AVFormatContext *s) uint64_t framepos, start_offset; uint32_t datalen, crc; + if (s->pb->seekable) { + ff_ape_parse_tag(s); + avio_seek(s->pb, 0, SEEK_SET); + } if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX)) ff_id3v1_read(s); |