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/c93.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/c93.c') diff --git a/libavcodec/c93.c b/libavcodec/c93.c index 750941e021..b534669ca2 100644 --- a/libavcodec/c93.c +++ b/libavcodec/c93.c @@ -48,7 +48,10 @@ typedef enum { static av_cold int decode_init(AVCodecContext *avctx) { + C93DecoderContext *s = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; + avcodec_get_frame_defaults(&s->pictures[0]); + avcodec_get_frame_defaults(&s->pictures[1]); return 0; } -- cgit v1.2.3