mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
dsputil must be initialized before calling rtjpeg init.
Originally committed as revision 10463 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6ec14b333d
commit
ba430e0cfa
@ -247,9 +247,9 @@ static int decode_init(AVCodecContext *avctx) {
|
|||||||
c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G');
|
c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G');
|
||||||
if (avctx->extradata_size)
|
if (avctx->extradata_size)
|
||||||
get_quant(avctx, c, avctx->extradata, 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))
|
if (!codec_reinit(avctx, avctx->width, avctx->height, -1))
|
||||||
return 1;
|
return 1;
|
||||||
dsputil_init(&c->dsp, avctx);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user