Mercurial > libavformat.hg
changeset 5641:980dc98901d9 libavformat
mp3: ftell() file offset for VBR tags before ID3v1 parser messes it up.
author | andoma |
---|---|
date | Wed, 10 Feb 2010 12:44:16 +0000 |
parents | 60f12d6e951c |
children | 747753995dee |
files | mp3.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mp3.c Tue Feb 09 18:59:34 2010 +0000 +++ b/mp3.c Wed Feb 10 12:44:16 2010 +0000 @@ -147,10 +147,11 @@ 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);