From 3b199d29cd597a3518136d78860e172060b9e83d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Feb 2013 08:50:04 +0100 Subject: lavc decoders: properly initialize AVFrame. --- libavcodec/truemotion1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/truemotion1.c') diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index 01d4694e14..f8a8dad3e9 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -468,7 +468,7 @@ static av_cold int truemotion1_decode_init(AVCodecContext *avctx) // else // avctx->pix_fmt = AV_PIX_FMT_RGB555; - s->frame.data[0] = NULL; + avcodec_get_frame_defaults(&s->frame); /* there is a vertical predictor for each pixel in a line; each vertical * predictor is 0 to start with */ -- cgit v1.2.1