Mercurial > libavcodec.hg
comparison nuv.c @ 5669:d540c7d88344 libavcodec
dsputil must be initialized before calling rtjpeg init.
author | reimar |
---|---|
date | Sun, 09 Sep 2007 18:14:11 +0000 |
parents | 0dc21d071895 |
children | dfdff1ca78a7 |
comparison
equal
deleted
inserted
replaced
5668:52aae8c63b30 | 5669:d540c7d88344 |
---|---|
245 c->width = 0; | 245 c->width = 0; |
246 c->height = 0; | 246 c->height = 0; |
247 c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G'); | 247 c->codec_frameheader = avctx->codec_tag == MKTAG('R', 'J', 'P', 'G'); |
248 if (avctx->extradata_size) | 248 if (avctx->extradata_size) |
249 get_quant(avctx, c, avctx->extradata, avctx->extradata_size); | 249 get_quant(avctx, c, avctx->extradata, avctx->extradata_size); |
250 dsputil_init(&c->dsp, avctx); | |
250 if (!codec_reinit(avctx, avctx->width, avctx->height, -1)) | 251 if (!codec_reinit(avctx, avctx->width, avctx->height, -1)) |
251 return 1; | 252 return 1; |
252 dsputil_init(&c->dsp, avctx); | |
253 return 0; | 253 return 0; |
254 } | 254 } |
255 | 255 |
256 static int decode_end(AVCodecContext *avctx) { | 256 static int decode_end(AVCodecContext *avctx) { |
257 NuvContext *c = avctx->priv_data; | 257 NuvContext *c = avctx->priv_data; |