[FFmpeg-cvslog] avfilter/vf_uspp: clear AVPacket to not leave uninitialized memory

Michael Niedermayer git at videolan.org
Tue Dec 30 16:55:13 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 30 15:07:14 2014 +0100| [eb465b8c56d455fddf0f4f9f2625e2fe3ff7ea06] | committer: Michael Niedermayer

avfilter/vf_uspp: clear AVPacket to not leave uninitialized memory

Fixes CID1260707

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb465b8c56d455fddf0f4f9f2625e2fe3ff7ea06
---

 libavfilter/vf_uspp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index ffd340a..2974ebe 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -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);



More information about the ffmpeg-cvslog mailing list