[FFmpeg-devel] [PATCH 10/11] avcodec/h264_parser: zero-initialize H264PredWeightTable

Timo Rothenpieler timo at rothenpieler.org
Sun Jun 11 17:07:24 EEST 2017


Fixes CID 1404889
---
 libavcodec/h264_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 2564c6c6c3..1a304f318f 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -155,7 +155,7 @@ found:
 static int scan_mmco_reset(AVCodecParserContext *s, GetBitContext *gb,
                            void *logctx)
 {
-    H264PredWeightTable pwt;
+    H264PredWeightTable pwt = { 0 };
     int slice_type_nos = s->pict_type & 3;
     H264ParseContext *p = s->priv_data;
     int list_count, ref_count[2];
-- 
2.13.0



More information about the ffmpeg-devel mailing list