[FFmpeg-devel] [PATCH]Fix valgrind output when reading aliaspix images

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Aug 10 15:09:48 CEST 2014


Hi!

Attached patch fixes a warning here that valgrind produces when reading the 
aliaspix fate samples.

Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index b9a1bcf..d70fc75 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -395,7 +395,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
         }
 
         if (codec->codec_id == AV_CODEC_ID_NONE) {
-            AVProbeData pd;
+            AVProbeData pd = { 0 };
             AVInputFormat *ifmt;
             uint8_t header[PROBE_BUF_MIN + AVPROBE_PADDING_SIZE];
             int ret;


More information about the ffmpeg-devel mailing list