diff options
author | David Conrad <lessen42@gmail.com> | 2009-04-15 06:41:08 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-04-15 06:41:08 +0000 |
commit | ddd94932fb321a0962e94f65323bfb4d4395883a (patch) | |
tree | a2ffbe5900fc882f8f835d2a8fa56f9018d1737e /libavformat/oggdec.c | |
parent | 99cc7f8a02a8203d0654eeae7e2f05e947876edd (diff) | |
download | ffmpeg-ddd94932fb321a0962e94f65323bfb4d4395883a.tar.gz |
Ensure that there's pages to read for duration calculation in the ogg demuxer
Originally committed as revision 18523 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 28dc56eeb9..5362489f5c 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -450,7 +450,7 @@ ogg_get_length (AVFormatContext * s) size = url_fsize(s->pb); if(size < 0) return 0; - end = size > MAX_PAGE_SIZE? size - MAX_PAGE_SIZE: size; + end = size > MAX_PAGE_SIZE? size - MAX_PAGE_SIZE: 0; ogg_save (s); url_fseek (s->pb, end, SEEK_SET); |