[FFmpeg-cvslog] oggdec: fix regression that caused reading the whole file during open

Michael Niedermayer git at videolan.org
Sat Jun 2 23:09:04 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  2 22:50:40 2012 +0200| [e0eaf1004910e451cbb8dbcb5c54ac63721adb61] | committer: Michael Niedermayer

oggdec: fix regression that caused reading the whole file during open

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0eaf1004910e451cbb8dbcb5c54ac63721adb61
---

 libavformat/oggdec.c |    3 +++
 1 file changed, 3 insertions(+)

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;



More information about the ffmpeg-cvslog mailing list