changeset 10050:b8313eb3dca8 libavcodec

Make sure AVSubtitle is initialized, memset it to 0.
author reimar
date Sat, 15 Aug 2009 00:46:33 +0000
parents a1b42791b13d
children e73c688ca84c
files xsubdec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xsubdec.c	Sat Aug 15 00:02:42 2009 +0000
+++ b/xsubdec.c	Sat Aug 15 00:46:33 2009 +0000
@@ -53,6 +53,7 @@
     int w, h, x, y, rlelen, i;
     GetBitContext gb;
 
+    memset(sub, 0, sizeof(*sub));
     sub->format = 0;
 
     // check that at least header fits