diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-02 22:50:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-02 22:50:40 +0200 |
commit | e0eaf1004910e451cbb8dbcb5c54ac63721adb61 (patch) | |
tree | 9f9ddfd7e56b9c994fb6d4fb7d6881a4b3f2838b /libavformat | |
parent | 82570d2f09e76d262f4eb57b591b08c4aa64729a (diff) | |
download | ffmpeg-streaming-e0eaf1004910e451cbb8dbcb5c54ac63721adb61.zip ffmpeg-streaming-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')
-rw-r--r-- | libavformat/oggdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 6f3a565..d30c17c 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; |