mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
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
This commit is contained in:
parent
99cc7f8a02
commit
ddd94932fb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user