> + avctx->coded_frame->reference = 0; > + avctx->coded_frame->key_frame = 1; > + avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; That makes yet two more encoders for which pts is not handled correctly.