mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-21 23:10:13 +00:00
oggdec: fix regression that caused reading the whole file during open
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
82570d2f09
commit
e0eaf10049
@ -530,6 +530,9 @@ static int ogg_get_length(AVFormatContext *s)
|
||||
s->streams[i]->duration -= pts;
|
||||
ogg->streams[i].got_start= 1;
|
||||
streams_left--;
|
||||
}else if(s->streams[i]->start_time != AV_NOPTS_VALUE && !ogg->streams[i].got_start){
|
||||
ogg->streams[i].got_start= 1;
|
||||
streams_left--;
|
||||
}
|
||||
if(streams_left<=0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user