mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
ogg: in ogg_get_length() start from data_offset not 0.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e73241ba89
commit
5931c754b8
@ -520,7 +520,7 @@ static int ogg_get_length(AVFormatContext *s)
|
||||
ogg_restore (s, 0);
|
||||
|
||||
ogg_save (s);
|
||||
avio_seek (s->pb, 0, SEEK_SET);
|
||||
avio_seek (s->pb, s->data_offset, SEEK_SET);
|
||||
while (!ogg_read_page (s, &i)){
|
||||
if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
|
||||
ogg->streams[i].codec) {
|
||||
|
Loading…
Reference in New Issue
Block a user