Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
5931c754b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/oggdec.c

+ 1
- 1
libavformat/oggdec.c 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) {


Loading…
Cancel
Save