Commit 4eb3f7b3 authored by conrad's avatar conrad

OGG demuxer: ensure that there's pages to read for duration calculation in

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18523 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 127550eb
...@@ -450,7 +450,7 @@ ogg_get_length (AVFormatContext * s) ...@@ -450,7 +450,7 @@ ogg_get_length (AVFormatContext * s)
size = url_fsize(s->pb); size = url_fsize(s->pb);
if(size < 0) if(size < 0)
return 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); ogg_save (s);
url_fseek (s->pb, end, SEEK_SET); url_fseek (s->pb, end, SEEK_SET);
......
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