Commit 3716a0f4 authored by andoma's avatar andoma

mp3: ftell() file offset for VBR tags before ID3v1 parser messes it up.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21737 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ccb2cbe0
......@@ -147,10 +147,11 @@ static int mp3_read_header(AVFormatContext *s,
av_set_pts_info(st, 64, 1, 14112000);
ff_id3v2_read(s);
off = url_ftell(s->pb);
if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
ff_id3v1_read(s);
off = url_ftell(s->pb);
if (mp3_parse_vbr_tags(s, st, off) < 0)
url_fseek(s->pb, off, SEEK_SET);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment