diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-02 22:50:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-07 00:55:25 +0200 |
commit | e863d3306f369c002c24dfda874a18173c5f5889 (patch) | |
tree | 00faab24fe39b4f54741eb049f01db7262e948e9 | |
parent | 433ec3afa3c8faaa8efb6de099b01b4d7d1e8053 (diff) | |
download | ffmpeg-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.c | 3 |
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; |