1 typedef struct AVCodecContext 2 { 3 int flags; 4 void *priv_data; 5 char codec_name[32]; 6 } 7 AVCodecContext; 8 typedef struct ScanTable 9 { 10 int obmc; 11 int umvplus; 12 int h263_aic; 13 } 14 MpegEncContext; MPV_encode_init(AVCodecContext * avctx)15MPV_encode_init (AVCodecContext *avctx) 16 { 17 MpegEncContext *s = avctx->priv_data; 18 s->umvplus = (avctx->flags & 0x02000000) ? 1 : 0; 19 s->h263_aic = (avctx->flags & 0x01000000) ? 1 : 0; 20 s->h263_aic = s->obmc || s->umvplus; 21 } 22