diff options
-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; |