From 2a70e78a2885aa9264f95b293a2169e57ca1bbdb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 9 Jun 2016 19:09:36 +0200 Subject: [PATCH] avformat/utils: Initialize st in loop Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index ac056c49d4..db699de314 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)) {