Mercurial > libavcodec.hg
diff mjpeg.c @ 1892:5ac49e7a1b8f libavcodec
init cleanup
author | michael |
---|---|
date | Tue, 16 Mar 2004 16:11:29 +0000 |
parents | 95612d423fde |
children | caee9c21b0b1 |
line wrap: on
line diff
--- a/mjpeg.c Tue Mar 16 15:38:40 2004 +0000 +++ b/mjpeg.c Tue Mar 16 16:11:29 2004 +0000 @@ -862,13 +862,11 @@ memset(&s2, 0, sizeof(MpegEncContext)); s2.avctx= avctx; // s2->out_format = FMT_MJPEG; - s2.width = 8; - s2.height = 8; - if (MPV_common_init(&s2) < 0) - return -1; + dsputil_init(&s2.dsp, avctx); + DCT_common_init(&s2); + s->scantable= s2.intra_scantable; s->idct_put= s2.dsp.idct_put; - MPV_common_end(&s2); s->mpeg_enc_ctx_allocated = 0; s->buffer_size = 102400; /* smaller buffer should be enough,