[FFmpeg-devel] [PATCH v6 09/11] libavformat/asfdec: Ensure variables are initialized

Soft Works softworkz at hotmail.com
Wed Oct 6 09:01:12 EEST 2021


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 8283f245ab..024d77903b 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -968,6 +968,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 ++;
-- 
2.30.2.windows.1



More information about the ffmpeg-devel mailing list