[FFmpeg-devel] [PATCH v3 09/11] libavformat/asfdec: ensure variables are initialized

softworkz ffmpegagent at gmail.com
Sun May 8 06:01:20 EEST 2022


From: softworkz <softworkz at hotmail.com>

Signed-off-by: softworkz <softworkz at hotmail.com>
---
 libavformat/asfdec_f.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 928e5717fc..4af8200f89 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -977,6 +977,7 @@ static int asf_get_packet(AVFormatContext *s, AVIOContext *pb)
             avio_seek(pb, -1, SEEK_CUR); // FIXME
         }
     } else {
+        d = e = 0;
         c = avio_r8(pb);
         if (c & 0x80) {
             rsize ++;
-- 
ffmpeg-codebot



More information about the ffmpeg-devel mailing list