On 26 Jan 2012, at 00:12, git at videolan.org (Paul B Mahol) wrote: > + avctx->coded_frame->reference = 0; > + avctx->coded_frame->key_frame = 1; > + avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; Wouldn't it make more sense to set these just once during init?