From f91730a16b40af8635a03ab0ac49a7c26b5d760b Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 12 Mar 2013 17:02:57 +0100 Subject: [PATCH] jv: initialize AVFrame Signed-off-by: Michael Niedermayer --- libavcodec/jvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c index 067845eeba..8ec07c21f3 100644 --- a/libavcodec/jvdec.c +++ b/libavcodec/jvdec.c @@ -43,6 +43,7 @@ static av_cold int decode_init(AVCodecContext *avctx) JvContext *s = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; ff_dsputil_init(&s->dsp, avctx); + avcodec_get_frame_defaults(&s->frame); return 0; }