comparison svq1.c @ 1892:5ac49e7a1b8f libavcodec

init cleanup
author michael
date Tue, 16 Mar 2004 16:11:29 +0000
parents bdf3927bf8c5
children 28d3f73aa254
comparison
equal deleted inserted replaced
1891:f403b3e286b3 1892:5ac49e7a1b8f
781 static int svq1_decode_init(AVCodecContext *avctx) 781 static int svq1_decode_init(AVCodecContext *avctx)
782 { 782 {
783 MpegEncContext *s = avctx->priv_data; 783 MpegEncContext *s = avctx->priv_data;
784 int i; 784 int i;
785 785
786 MPV_decode_defaults(s);
787
786 s->avctx = avctx; 788 s->avctx = avctx;
787 s->width = (avctx->width+3)&~3; 789 s->width = (avctx->width+3)&~3;
788 s->height = (avctx->height+3)&~3; 790 s->height = (avctx->height+3)&~3;
789 s->codec_id= avctx->codec->id; 791 s->codec_id= avctx->codec->id;
790 avctx->pix_fmt = PIX_FMT_YUV410P; 792 avctx->pix_fmt = PIX_FMT_YUV410P;