Commit 5931c754 authored by Michael Niedermayer's avatar Michael Niedermayer

ogg: in ogg_get_length() start from data_offset not 0.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e73241ba
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment