[FFmpeg-cvslog] avformat/utils: Initialize st in loop

Michael Niedermayer git at videolan.org
Thu Jun 9 19:42:07 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jun  9 19:09:36 2016 +0200| [2a70e78a2885aa9264f95b293a2169e57ca1bbdb] | committer: Michael Niedermayer

avformat/utils: Initialize st in loop

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index ac056c4..db699de 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3605,6 +3605,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
     if (eof_reached && ic->internal->packet_buffer) {
         int stream_index;
         for (stream_index = 0; stream_index < ic->nb_streams; stream_index++) {
+            st = ic->streams[stream_index];
+
             // EOF already reached while reading the stream above.
             // So continue with reoordering DTS with whatever delay we have.
             if (!has_decode_delay_been_guessed(st)) {



More information about the ffmpeg-cvslog mailing list