diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-14 14:03:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-14 14:15:34 +0200 |
commit | 5931c754b8a5b7d99a0b68467255b25187e429bf (patch) | |
tree | 35dcdba0af29abc85b00133a009b05a0d7d12174 /libavformat/oggdec.c | |
parent | e73241ba89f2e62fb71488fbc87023630f6f0861 (diff) | |
download | ffmpeg-5931c754b8a5b7d99a0b68467255b25187e429bf.tar.gz |
ogg: in ogg_get_length() start from data_offset not 0.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index ab7ab1d0b8..17b96738a9 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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) { |