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/bethsoftvideo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/bethsoftvideo.c') diff --git a/libavcodec/bethsoftvideo.c b/libavcodec/bethsoftvideo.c index 73145701ff..b113bc44e7 100644 --- a/libavcodec/bethsoftvideo.c +++ b/libavcodec/bethsoftvideo.c @@ -42,6 +42,7 @@ static av_cold int bethsoftvid_decode_init(AVCodecContext *avctx) { BethsoftvidContext *vid = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; + avcodec_get_frame_defaults(&vid->frame); return 0; } -- cgit v1.2.3