mp3: ftell() file offset for VBR tags before ID3v1 parser messes it up.
Originally committed as revision 21737 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
19530266a5
commit
80242f9bdb
@ -147,10 +147,11 @@ static int mp3_read_header(AVFormatContext *s,
|
|||||||
av_set_pts_info(st, 64, 1, 14112000);
|
av_set_pts_info(st, 64, 1, 14112000);
|
||||||
|
|
||||||
ff_id3v2_read(s);
|
ff_id3v2_read(s);
|
||||||
|
off = url_ftell(s->pb);
|
||||||
|
|
||||||
if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
|
if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
|
||||||
ff_id3v1_read(s);
|
ff_id3v1_read(s);
|
||||||
|
|
||||||
off = url_ftell(s->pb);
|
|
||||||
if (mp3_parse_vbr_tags(s, st, off) < 0)
|
if (mp3_parse_vbr_tags(s, st, off) < 0)
|
||||||
url_fseek(s->pb, off, SEEK_SET);
|
url_fseek(s->pb, off, SEEK_SET);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user