comparison rv10.c @ 1892:5ac49e7a1b8f libavcodec

init cleanup
author michael
date Tue, 16 Mar 2004 16:11:29 +0000
parents 2de13087f46e
children 1c382d137275
comparison
equal deleted inserted replaced
1891:f403b3e286b3 1892:5ac49e7a1b8f
439 static int rv10_decode_init(AVCodecContext *avctx) 439 static int rv10_decode_init(AVCodecContext *avctx)
440 { 440 {
441 MpegEncContext *s = avctx->priv_data; 441 MpegEncContext *s = avctx->priv_data;
442 static int done=0; 442 static int done=0;
443 443
444 MPV_decode_defaults(s);
445
444 s->avctx= avctx; 446 s->avctx= avctx;
445 s->out_format = FMT_H263; 447 s->out_format = FMT_H263;
446 s->codec_id= avctx->codec_id; 448 s->codec_id= avctx->codec_id;
447 449
448 s->width = avctx->width; 450 s->width = avctx->width;
488 if (MPV_common_init(s) < 0) 490 if (MPV_common_init(s) < 0)
489 return -1; 491 return -1;
490 492
491 h263_decode_init_vlc(s); 493 h263_decode_init_vlc(s);
492 494
493 s->progressive_sequence=1;
494
495 /* init rv vlc */ 495 /* init rv vlc */
496 if (!done) { 496 if (!done) {
497 init_vlc(&rv_dc_lum, DC_VLC_BITS, 256, 497 init_vlc(&rv_dc_lum, DC_VLC_BITS, 256,
498 rv_lum_bits, 1, 1, 498 rv_lum_bits, 1, 1,
499 rv_lum_code, 2, 2); 499 rv_lum_code, 2, 2);