comparison h264.c @ 1892:5ac49e7a1b8f libavcodec

init cleanup
author michael
date Tue, 16 Mar 2004 16:11:29 +0000
parents b7340afa261a
children 4e8ed93524f6
comparison
equal deleted inserted replaced
1891:f403b3e286b3 1892:5ac49e7a1b8f
2164 2164
2165 static int decode_init(AVCodecContext *avctx){ 2165 static int decode_init(AVCodecContext *avctx){
2166 H264Context *h= avctx->priv_data; 2166 H264Context *h= avctx->priv_data;
2167 MpegEncContext * const s = &h->s; 2167 MpegEncContext * const s = &h->s;
2168 2168
2169 MPV_decode_defaults(s);
2170
2169 s->avctx = avctx; 2171 s->avctx = avctx;
2170 common_init(h); 2172 common_init(h);
2171 2173
2172 s->out_format = FMT_H264; 2174 s->out_format = FMT_H264;
2173 s->workaround_bugs= avctx->workaround_bugs; 2175 s->workaround_bugs= avctx->workaround_bugs;
2174 2176
2175 // set defaults 2177 // set defaults
2176 s->progressive_sequence=1;
2177 // s->decode_mb= ff_h263_decode_mb; 2178 // s->decode_mb= ff_h263_decode_mb;
2178 s->low_delay= 1; 2179 s->low_delay= 1;
2179 avctx->pix_fmt= PIX_FMT_YUV420P; 2180 avctx->pix_fmt= PIX_FMT_YUV420P;
2180 2181
2181 decode_init_vlc(h); 2182 decode_init_vlc(h);