changeset 5669:d540c7d88344 libavcodec

dsputil must be initialized before calling rtjpeg init.
author reimar
date Sun, 09 Sep 2007 18:14:11 +0000
parents 52aae8c63b30
children 2f3431b34f0f
files nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Sun Sep 09 17:01:11 2007 +0000
+++ b/nuv.c	Sun Sep 09 18:14:11 2007 +0000
@@ -247,9 +247,9 @@
     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;
 }