avfilter/vf_uspp: clear AVPacket to not leave uninitialized memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2014 14:07:14 +0000 (15:07 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Dec 2014 14:15:36 +0000 (15:15 +0100)
Fixes CID1260707

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_uspp.c

index ffd340a..2974ebe 100644 (file)
@@ -250,7 +250,7 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3],
         const int y1c = y1 >> p->vsub;
         const int BLOCKc = BLOCK >> p->hsub;
         int offset;
-        AVPacket pkt;
+        AVPacket pkt = {0};
         int got_pkt_ptr;
 
         av_init_packet(&pkt);