提交 ba430e0c 编写于 作者: R Reimar Döffinger

dsputil must be initialized before calling rtjpeg init.

Originally committed as revision 10463 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 6ec14b33
......@@ -247,9 +247,9 @@ static int decode_init(AVCodecContext *avctx) {
c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G');
if (avctx->extradata_size)
get_quant(avctx, c, avctx->extradata, avctx->extradata_size);
dsputil_init(&c->dsp, avctx);
if (!codec_reinit(avctx, avctx->width, avctx->height, -1))
return 1;
dsputil_init(&c->dsp, avctx);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册