1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Make sure AVSubtitle is initialized, memset it to 0.

Originally committed as revision 19642 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2009-08-15 00:46:33 +00:00
parent 266649a52f
commit df47d24501

View File

@ -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