]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/jvdec.c
Add a lavc Makefile dependency for the elbg filter.
[ffmpeg] / libavcodec / jvdec.c
index 740884ad3b58e856fbb02232e1ee73357644da75..cad053289a01055758f727b016b9653a2faf372a 100644 (file)
@@ -41,11 +41,13 @@ typedef struct JvContext {
 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);
+
     s->frame = av_frame_alloc();
     if (!s->frame)
         return AVERROR(ENOMEM);
+
+    avctx->pix_fmt = AV_PIX_FMT_PAL8;
+    ff_dsputil_init(&s->dsp, avctx);
     return 0;
 }