From e863d3306f369c002c24dfda874a18173c5f5889 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Jun 2012 22:50:40 +0200 Subject: [PATCH] oggdec: fix regression that caused reading the whole file during open Signed-off-by: Michael Niedermayer (cherry picked from commit e0eaf1004910e451cbb8dbcb5c54ac63721adb61) Signed-off-by: Michael Niedermayer --- libavformat/oggdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 6f3a5657d1..d30c17cc2a 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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;