comparison mpegvideo.c @ 1894:3135de68d556 libavcodec

moving f/b_code init to where it should be
author michael
date Tue, 16 Mar 2004 17:27:03 +0000
parents 5ac49e7a1b8f
children a5588762c4fa
comparison
equal deleted inserted replaced
1893:779bdf5063ce 1894:3135de68d556
517 s->coded_picture_number = 0; 517 s->coded_picture_number = 0;
518 s->picture_number = 0; 518 s->picture_number = 0;
519 s->input_picture_number = 0; 519 s->input_picture_number = 0;
520 520
521 s->picture_in_gop_number = 0; 521 s->picture_in_gop_number = 0;
522
523 s->f_code = 1;
524 s->b_code = 1;
522 } 525 }
523 526
524 /** 527 /**
525 * sets the given MpegEncContext to defaults for decoding. 528 * sets the given MpegEncContext to defaults for decoding.
526 * the changed fields will not depend upon the prior state of the MpegEncContext. 529 * the changed fields will not depend upon the prior state of the MpegEncContext.
1165 s->inter_matrix, s->inter_quant_bias, 1, 31); 1168 s->inter_matrix, s->inter_quant_bias, 1, 31);
1166 } 1169 }
1167 1170
1168 if(ff_rate_control_init(s) < 0) 1171 if(ff_rate_control_init(s) < 0)
1169 return -1; 1172 return -1;
1170
1171 /* motion detector init */
1172 s->f_code = 1;
1173 s->b_code = 1;
1174 1173
1175 return 0; 1174 return 0;
1176 } 1175 }
1177 1176
1178 int MPV_encode_end(AVCodecContext *avctx) 1177 int MPV_encode_end(AVCodecContext *avctx)