Mercurial > libavcodec.hg
diff mpegvideo.c @ 843:8c81f1ee9271 libavcodec
cleanup
author | michaelni |
---|---|
date | Sat, 09 Nov 2002 10:38:34 +0000 |
parents | e460775adb38 |
children | f3c369b8ddca |
line wrap: on
line diff
--- a/mpegvideo.c Fri Nov 08 18:35:39 2002 +0000 +++ b/mpegvideo.c Sat Nov 09 10:38:34 2002 +0000 @@ -410,7 +410,7 @@ /* divx501 bitstream reorder buffer */ CHECKED_ALLOCZ(s->bitstream_buffer, BITSTREAM_BUFFER_SIZE); - + /* cbp, ac_pred, pred_dir */ CHECKED_ALLOCZ(s->cbp_table , s->mb_num * sizeof(UINT8)) CHECKED_ALLOCZ(s->pred_dir_table, s->mb_num * sizeof(UINT8)) @@ -996,9 +996,9 @@ init_put_bits(&s->pb, buf, buf_size, NULL, NULL); - if(avctx->flags&CODEC_FLAG_TYPE){ + if(avctx->force_type){ s->input_pict_type= - s->force_input_type= avctx->key_frame ? I_TYPE : P_TYPE; + s->force_input_type= avctx->force_type; }else if(s->flags&CODEC_FLAG_PASS2){ s->input_pict_type= s->force_input_type= s->rc_context.entry[s->input_picture_number].new_pict_type;