aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-02 22:50:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-07 00:55:25 +0200
commite863d3306f369c002c24dfda874a18173c5f5889 (patch)
tree00faab24fe39b4f54741eb049f01db7262e948e9
parent433ec3afa3c8faaa8efb6de099b01b4d7d1e8053 (diff)
downloadffmpeg-e863d3306f369c002c24dfda874a18173c5f5889.tar.gz
oggdec: fix regression that caused reading the whole file during open
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e0eaf1004910e451cbb8dbcb5c54ac63721adb61) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggdec.c3
1 files changed, 3 insertions, 0 deletions
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;