jv: initialize AVFrame
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 12 Mar 2013 16:02:57 +0000 (17:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Mar 2013 17:24:49 +0000 (18:24 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jvdec.c

index 067845e..8ec07c2 100644 (file)
@@ -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;
 }