You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mp3dec: offset seek index to end of vbr headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -334,6 +334,7 @@ static int mp3_read_header(AVFormatContext *s)
|
|||||||
AVStream *st;
|
AVStream *st;
|
||||||
int64_t off;
|
int64_t off;
|
||||||
int ret;
|
int ret;
|
||||||
|
int i;
|
||||||
|
|
||||||
st = avformat_new_stream(s, NULL);
|
st = avformat_new_stream(s, NULL);
|
||||||
if (!st)
|
if (!st)
|
||||||
@@ -363,6 +364,10 @@ static int mp3_read_header(AVFormatContext *s)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
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 */
|
/* the parameters will be extracted from the compressed bitstream */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user