aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-02 22:50:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-02 22:50:40 +0200
commite0eaf1004910e451cbb8dbcb5c54ac63721adb61 (patch)
tree9f9ddfd7e56b9c994fb6d4fb7d6881a4b3f2838b /libavformat/oggdec.c
parent82570d2f09e76d262f4eb57b591b08c4aa64729a (diff)
downloadffmpeg-e0eaf1004910e451cbb8dbcb5c54ac63721adb61.tar.gz
oggdec: fix regression that caused reading the whole file during open
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-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;