mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +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;
|
s->streams[i]->duration -= pts;
|
||||||
ogg->streams[i].got_start= 1;
|
ogg->streams[i].got_start= 1;
|
||||||
streams_left--;
|
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)
|
if(streams_left<=0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user