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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-14 14:03:07 +02:00
parent e73241ba89
commit 5931c754b8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {