summaryrefslogtreecommitdiff
path: root/libavformat/tta.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-07 10:28:13 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-07 10:39:21 +0000
commit369684f1092427a3cfa1a62b43f2952a5554061d (patch)
tree157e613f13ab9e43c24e46fd21e94961553b9af7 /libavformat/tta.c
parent5bafe0ce4463bad1c8443b0f4402e1ac38292ba8 (diff)
tta: unbreak demuxing of files with id3 tags at start of file
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/tta.c')
-rw-r--r--libavformat/tta.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c
index ec006a8e70..dec86c0a6c 100644
--- a/libavformat/tta.c
+++ b/libavformat/tta.c
@@ -59,12 +59,12 @@ static int tta_read_header(AVFormatContext *s)
uint64_t framepos, start_offset;
uint32_t nb_samples, crc;
+ ff_id3v1_read(s);
if (s->pb->seekable) {
+ int64_t pos = avio_tell(s->pb);
ff_ape_parse_tag(s);
- avio_seek(s->pb, 0, SEEK_SET);
+ avio_seek(s->pb, pos, SEEK_SET);
}
- if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
- ff_id3v1_read(s);
start_offset = avio_tell(s->pb);
ffio_init_checksum(s->pb, tta_check_crc, UINT32_MAX);