comparison mpegvideo.c @ 376:ba9c3b8088c0 libavcodec

- pict_type exported to AVCodecContext - Added real_pict_num to AVCodecContext, it represent the number of the previous encoded frame, usefull when coding with B frames. - Warning fix in motion_est.c
author pulento
date Sat, 11 May 2002 23:42:16 +0000
parents 0eca28d16cbd
children fce0a2520551
comparison
equal deleted inserted replaced
375:749b5c16c0f7 376:ba9c3b8088c0
791 s->picture_number= s->coded_order[0].picture_number; 791 s->picture_number= s->coded_order[0].picture_number;
792 792
793 MPV_frame_start(s); 793 MPV_frame_start(s);
794 794
795 encode_picture(s, s->picture_number); 795 encode_picture(s, s->picture_number);
796 avctx->key_frame = (s->pict_type == I_TYPE); 796 avctx->key_frame = (s->pict_type == I_TYPE);
797 avctx->pict_type = s->pict_type;
798 avctx->real_pict_num = s->picture_number;
797 avctx->header_bits = s->header_bits; 799 avctx->header_bits = s->header_bits;
798 avctx->mv_bits = s->mv_bits; 800 avctx->mv_bits = s->mv_bits;
799 avctx->misc_bits = s->misc_bits; 801 avctx->misc_bits = s->misc_bits;
800 avctx->i_tex_bits = s->i_tex_bits; 802 avctx->i_tex_bits = s->i_tex_bits;
801 avctx->p_tex_bits = s->p_tex_bits; 803 avctx->p_tex_bits = s->p_tex_bits;