Make sure AVSubtitle is initialized, memset it to 0.

Originally committed as revision 19642 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Reimar Döffinger 16 years ago
parent 266649a52f
commit df47d24501
  1. 1
      libavcodec/xsubdec.c

@ -53,6 +53,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
int w, h, x, y, rlelen, i;
GetBitContext gb;
memset(sub, 0, sizeof(*sub));
sub->format = 0;
// check that at least header fits

Loading…
Cancel
Save