Commit e0eaf100 authored by Michael Niedermayer's avatar Michael Niedermayer

oggdec: fix regression that caused reading the whole file during open

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 82570d2f
......@@ -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;
......
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