# HG changeset patch # User reimar # Date 1250297193 0 # Node ID b8313eb3dca8c0d79890dc81f0abe29adaa279f0 # Parent a1b42791b13df4681ce626f219dfdf9365dd943c Make sure AVSubtitle is initialized, memset it to 0. diff -r a1b42791b13d -r b8313eb3dca8 xsubdec.c --- 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