diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-17 01:16:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-17 01:17:18 +0100 |
commit | ddfdcd2b5ecce0914c1eefa6269060bdbc879b17 (patch) | |
tree | edeba220904a89bd8249555f6ec880ad382768a1 | |
parent | 5219afc09d8e97e18917738cbc052f903df9a619 (diff) | |
parent | b7462a3904d71ff799584faf5b875cad59ca2f31 (diff) | |
download | ffmpeg-ddfdcd2b5ecce0914c1eefa6269060bdbc879b17.tar.gz |
Merge commit 'b7462a3904d71ff799584faf5b875cad59ca2f31'
* commit 'b7462a3904d71ff799584faf5b875cad59ca2f31':
jvdec: use the AVFrame API properly.
Conflicts:
libavcodec/jvdec.c
See: 678431d3f2c5f35fe48b02d5035604ace742be2e
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/jvdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c index 740884ad3b..cad053289a 100644 --- a/libavcodec/jvdec.c +++ b/libavcodec/jvdec.c @@ -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; } |