--- libavformat/mp3dec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index d2498a0..c48f1f1 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -334,6 +334,7 @@ static int mp3_read_header(AVFormatContext *s) AVStream *st; int64_t off; int ret; + int i; st = avformat_new_stream(s, NULL); if (!st) @@ -363,6 +364,10 @@ static int mp3_read_header(AVFormatContext *s) if (ret < 0) return ret; + // the seek index is relative to the end of the xing vbr headers + for (i = 0; i < st->nb_index_entries; i++) + st->index_entries[i].pos += avio_tell(s->pb); + /* the parameters will be extracted from the compressed bitstream */ return 0; } -- 2.1.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel